Skip to content

Commit

Permalink
ci: add workflow for PRs to main
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones committed Sep 1, 2023
1 parent 0e24714 commit c2b4e19
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ci
on:
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- uses: actions/cache@v3
id: cache
with:
path: |
node_modules
*/**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Run ci checks
run: yarn ci-check
- name: Build project
run: yarn build
# - name: Run tests
# run: yarn test

0 comments on commit c2b4e19

Please sign in to comment.