Version Packages (#121) #133
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: "CI" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**' | |
- '!README.md' | |
pull_request: | |
paths: | |
- '**' | |
- '!README.md' | |
jobs: | |
test: | |
name: "${{ matrix.command }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
command: | |
- npm run build | |
- npm run lint | |
- npm run test | |
- npm run test:integration | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- name: Installation | |
run: npm ci | |
- name: Installation (for Integration Tests) | |
if: contains(matrix.command, 'integration') | |
run: npm run test:integration:install | |
- name: "${{ matrix.command }}" | |
run: ${{ matrix.command }} |