Skip to content

Commit

Permalink
ci: github ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
hhow09 committed Jan 21, 2025
1 parent f192ddb commit 90bd4d1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on:
push:
branches: [ "master"]
paths-ignore:
- "README.md"
pull_request:
branches: [ "master" ]

jobs:
test:
strategy:
matrix:
directory: [ "./backend" ]
name: 🎉 Test
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ${{ matrix.directory }}/.nvmrc
- name: 📦 Install dependencies
working-directory: ${{ matrix.directory }}
run: npm ci
- name: Linter
working-directory: ${{ matrix.directory }}
run: npm run lint
- name: Test
working-directory: ${{ matrix.directory }}
run: npm test

1 change: 1 addition & 0 deletions backend/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.16.0

0 comments on commit 90bd4d1

Please sign in to comment.