Skip to content

Commit

Permalink
ci: adding github workflow for ci job (#364)
Browse files Browse the repository at this point in the history
includes yarn lint, test, and build
  • Loading branch information
igaskin authored Sep 13, 2024
1 parent ddc743c commit 282382e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 282382e

Please sign in to comment.