chore: use node v20 by default, [email protected] #63
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: Test | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
services: | |
elasticmq: | |
image: s12v/elasticmq | |
options: -p 9324:9324 -v /tmp/elasticmq:/etc/elasticmq --name elasticmq | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sudo cp ${{ github.workspace }}/.github/build/elasticmq.conf /tmp/elasticmq | |
- name: Restart elasticmq | |
uses: docker://docker | |
with: | |
args: docker restart elasticmq | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v3 | |
name: Use Node.js ${{ matrix.node-version }} | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: check lint | |
run: pnpm run lint | |
- name: test | |
env: | |
SQS_ENDPOINT: http://localhost:9324 | |
run: pnpm run test:e2e |