Skip to content

Commit

Permalink
Add CI pipeline (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Odraxs authored Nov 23, 2023
1 parent 6b64dbe commit cea7f37
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Code directory api CI
on:
push:
branches:
- "main"
- "v*.[0-9]"
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

steps:
- name: Copy repository
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Yarn
run: npm install -g yarn

- name: Install dependencies
run: yarn install

- name: Lint code
run: yarn lint

- name: Run tests
run: yarn test

0 comments on commit cea7f37

Please sign in to comment.