From c2b4e1908d3cafa14d4d4d99162ed856ea4aeed4 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Fri, 1 Sep 2023 10:28:29 -0500 Subject: [PATCH] ci: add workflow for PRs to main --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..5781c1fa --- /dev/null +++ b/.github/workflows/ci.yml @@ -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