Skip to content

Commit

Permalink
Merge pull request #32 from near/run_test_on_merge
Browse files Browse the repository at this point in the history
build: require prs on main to not break the build or unit tests
  • Loading branch information
charleslavon authored Jul 10, 2024
2 parents 5ea996f + 0e868f1 commit ac49e3b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI
on:
pull_request:
push:
branches:
- main

jobs:
build-and-test:
name: build-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
version: 8.5.1
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run build & test
run: npm run build && npm test

0 comments on commit ac49e3b

Please sign in to comment.