Merge pull request #918 from nearst/dependabot/npm_and_yarn/types/aws… #50
Workflow file for this run
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: Tests | |
on: | |
push: | |
merge_group: | |
workflow_dispatch: | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: 🧪 Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16, 18, 20] | |
env: | |
NODE_VERSION: ${{ matrix.node-version }} | |
AWS_REGION: us-east-1 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup node v${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Setup java 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm run test:ci && npm run test:integration | |
- name: Upload coverage | |
if: matrix.node-version == 20 | |
uses: coverallsapp/github-action@v2 |