Skip to content

chore(deps-dev): bump @babel/traverse from 7.21.2 to 7.23.2 (#455) #108

chore(deps-dev): bump @babel/traverse from 7.21.2 to 7.23.2 (#455)

chore(deps-dev): bump @babel/traverse from 7.21.2 to 7.23.2 (#455) #108

name: ngx-aws-deploy-s3
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}
NX_BASE: 'remotes/origin/main'
steps:
- name: Clone repository
# `fetch-depth` defaults to 1.
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache builder node modules
id: cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ matrix.version }}
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.version }}
if: steps.cache.outputs.cache-hit != 'true'
- uses: nrwl/nx-set-shas@v3
- run: npm ci
- name: Symlink dist 🔗
run: npm run symlinks
- run: npx nx run-many --target=build --all
- name: Setup minio
run: |
docker run -d -p 9000:9000 --name minio \
-e "MINIO_ACCESS_KEY=minioadmin" \
-e "MINIO_SECRET_KEY=minioadmin" \
-v /tmp/data:/data \
-v /tmp/config:/root/.minio \
minio/minio server /data
export AWS_ACCESS_KEY_ID=minioadmin
export AWS_SECRET_ACCESS_KEY=minioadmin
export AWS_EC2_METADATA_DISABLED=true
aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://testbucket
- name: Test Upload S3
run: npm run test-deploy
env:
AWS_USE_PATH_STYLE_ENDPOINT: true
AWS_ENDPOINT: http://localhost:9000
NG_DEPLOY_AWS_REGION: eu-central-1
NG_DEPLOY_AWS_BUCKET: testbucket
NG_DEPLOY_AWS_SECRET_ACCESS_KEY: minioadmin
NG_DEPLOY_AWS_ACCESS_KEY_ID: minioadmin
NG_CLI_ANALYTICS: false