Add CLA Assistant GitHub workflow (#706) #188
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: Continuous Integration Main | |
on: | |
push: | |
branches: | |
- main | |
permissions: read-all | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
permissions: read-all | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run version:check | |
- name: Lint code | |
run: npm run lint | |
- name: Lint docs | |
run: npm run lint:markdown | |
- name: Transpile code | |
run: npm run compile | |
- name: Unit test | |
run: npm run test:unit:ci | |
local-integration-tests: | |
runs-on: ubuntu-latest | |
permissions: read-all | |
strategy: | |
fail-fast: true | |
matrix: | |
browser: [headlessChrome, headlessFirefox] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run compile | |
- name: Local integration tests using ${{ matrix.browser }} | |
run: npm run test:integration:local:${{ matrix.browser }}:_execute |