Skip to content

Commit

Permalink
ci: add test stage to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Dec 23, 2023
1 parent 2143569 commit 26f2765
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test and build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Check Yarn Version
run: yarn --version

- name: Install dependencies
run: yarn

- name: Run tests
run: yarn test

- name: Build
run: |
yarn build

0 comments on commit 26f2765

Please sign in to comment.