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