Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/build_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build PR
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:18.20
steps:
- uses: actions/checkout@v4.1.0
- name: restore_cache
uses: actions/cache@v4.3.0
with:
key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
path: node_modules/
restore-keys: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Lint the codebase
run: yarn lint
- name: Run tests
run: yarn test --colors --maxWorkers=2
- name: Run build
run: yarn build