From 4984c724dcabd668f7ddaf768219c914b9af678d Mon Sep 17 00:00:00 2001 From: Jaron Date: Mon, 22 Sep 2025 16:51:11 -0500 Subject: [PATCH 1/2] Add CI workflow for testing on PR --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e258d2c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: CI Testing +on: + pull_request: + secrets: + CLIENT_SECRET: + required: true + INTEGRATION_ACCESS_TOKEN: + required: true + REFRESH_TOKEN: + required: true +jobs: + build: + runs-on: ubuntu-latest + name: Build and test + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install deps and build (with cache) + run: yarn && yarn build + + - name: Test + run: yarn test --ci --coverage --maxWorkers=2 + env: + CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} + INTEGRATION_ACCESS_TOKEN: ${{ secrets.INTEGRATION_ACCESS_TOKEN }} + REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} + + - name: Build + run: yarn build From e618d383a9a83ee2b61540dc1d230412bd8c9b19 Mon Sep 17 00:00:00 2001 From: Jaron Date: Mon, 22 Sep 2025 17:00:04 -0500 Subject: [PATCH 2/2] Add pull request type for CI workflow --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e258d2c..17486d8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,8 @@ name: CI Testing on: pull_request: + types: + - opened secrets: CLIENT_SECRET: required: true