Skip to content

Commit

Permalink
feat: Add CI workflow for automated testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alan890104 committed Jan 7, 2024
1 parent 241662d commit e371eaa
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

# trigger on Pull request for all branches and on push for master branch
on:
pull_request:
branches:
- '*'
push:
branches:
- master
jobs:
build:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node: [18]
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build contracts
run: yarn build --all
- name: Run tests
run: yarn test

0 comments on commit e371eaa

Please sign in to comment.