Skip to content

Merge pull request #87 from pkorchak/dependabot/npm_and_yarn/braces-3… #213

Merge pull request #87 from pkorchak/dependabot/npm_and_yarn/braces-3…

Merge pull request #87 from pkorchak/dependabot/npm_and_yarn/braces-3… #213

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Perform static code analysis
run: npm run lint
- name: Build app
run: npm run build
- name: Run unit tests
run: npm run ci-test
- name: Run end-to-end tests
run: npm run ci-e2e
env:
CI: true
- name: Upload to S3 bucket
if: github.ref_name == 'main'
uses: jakejarvis/s3-sync-action@master
with:
args: --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SOURCE_DIR: ./dist/form-builder-demo/