Skip to content

Commit

Permalink
Add real tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chehsunliu committed Nov 24, 2024
1 parent 3f178a7 commit 4a2fec0
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
node-version: [18, 22]
steps:
- uses: actions/checkout@v4

Expand All @@ -44,3 +44,19 @@ jobs:

- name: Build
run: npm run build

- name: Start containers
run: docker compose up -d dynamodb mysql

- name: Provision DynamoDB
run: docker compose up --exit-code-from dynamodb-init dynamodb-init

- name: Provision MySQL
run: docker compose up --exit-code-from mysql-init mysql-init

- name: Run the tests
run: npm run test -- --reporter=verbose --silent --coverage

- name: Shutdown containers
if: always()
run: docker compose down --remove-orphans -v --timeout 3 || true

0 comments on commit 4a2fec0

Please sign in to comment.