From 1e65c3e98c90e0638d412e70c78fb927e061b1ec Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Sat, 18 Jan 2025 13:53:40 +0000 Subject: [PATCH] add ci --- .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 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 0000000..d65bda5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: CI + +on: + push: + branches: + - main + tags: + - '**' + pull_request: {} + +env: + COLUMNS: 150 + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + + - run: npm install + + - uses: pre-commit/action@v3.0.0 + with: + extra_args: --all-files + env: + SKIP: no-commit-to-branch + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + + - run: npm install + - run: num run build + + check: + if: always() + needs: [lint, build] + runs-on: ubuntu-latest + + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }}