From 282382e91ef2d6440326b7f8127bf290435de635 Mon Sep 17 00:00:00 2001 From: Isaac Gaskin Date: Fri, 13 Sep 2024 01:53:37 -0700 Subject: [PATCH] ci: adding github workflow for ci job (#364) includes yarn lint, test, and build --- .github/workflows/pipeline.yaml | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/pipeline.yaml diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml new file mode 100644 index 00000000..903fbdbe --- /dev/null +++ b/.github/workflows/pipeline.yaml @@ -0,0 +1,39 @@ +name: Continuous Integration +on: + pull_request: + push: + branches: [master] +jobs: + test: + name: 'Test' + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Install Node 16.x + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Run Lint + run: yarn lint + + - name: Run Test + run: yarn test + + - name: Run Build + run: yarn build + + scan: + needs: test + if: github.event_name == 'pull_request' + uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1 + + release-sbom: + needs: test + if: github.event_name == 'push' + uses: circlefin/circle-public-github-workflows/.github/workflows/attach-release-assets.yaml@v1