Merge pull request #2193 from auslin-aot/bugfix/changed-service-url #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Forms Flow Web CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- develop | |
- master | |
- release/** | |
pull_request: | |
branches: | |
- develop | |
- master | |
- release/** | |
paths: | |
- "forms-flow-web/**" | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./forms-flow-web | |
jobs: | |
setup-job: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- run: "true" | |
Lint: | |
needs: setup-job | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [14.17.0] | |
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: Linting | |
run: | | |
npm run lint | |
Test: | |
if: Always() | |
needs: setup-job | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [14.17.0] | |
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: Unit Test | |
id: test | |
run: | | |
npm test a | |
Build: | |
if: always() | |
needs: setup-job | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [14.17.0] | |
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: build to check strictness | |
id: build | |
run: | | |
npm run build |