From 002b7fcdca43b2e1ccb2f40c8b426453c5a75de6 Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Wed, 11 Sep 2024 10:18:17 -0700 Subject: [PATCH] Split out a job. --- .github/workflows/main.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa6c1fae..a96ad289 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,20 +17,14 @@ on: # Workflow. Jobs run in parallel by default, but that is moot here: there's only # one job. jobs: - # Build the project! - build: + # Check dependencies. + check-dependencies: runs-on: ubuntu-latest steps: - - name: Get Node. - uses: actions/setup-node@v4 - with: - node-version: '20.x' - - # Note: Checks out into `$GITHUB_WORKSPACE`, which is also the `$CWD`. - name: Clone repo. uses: actions/checkout@v4 - - name: Dependency Review + - name: Check dependencies. uses: actions/dependency-review-action@v4 with: warn-only: true @@ -53,6 +47,19 @@ jobs: Python-2.0, Unlicense + # Build the project. + build: + runs-on: ubuntu-latest + steps: + - name: Get Node. + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + # Note: Checks out into `$GITHUB_WORKSPACE`, which is also the `$CWD`. + - name: Clone repo. + uses: actions/checkout@v4 + - name: Run the linter. run: ./scripts/ubik dev lint