Skip to content

Commit

Permalink
ci: consolidate Build and Lint workflows into single Check workflow
Browse files Browse the repository at this point in the history
Consolidate the separate Build and Lint workflows into a unified Check
workflow, as linting is now integrated into the build process.

Link: danth#519
(cherry picked from commit 0d0af5f)
  • Loading branch information
trueNAHO committed Jan 4, 2025
1 parent b5179b6 commit e0df5c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 49 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml → .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Check

on:
push:
Expand Down Expand Up @@ -34,17 +34,17 @@ jobs:
outputs:
packages: ${{ steps.list-packages.outputs.packages }}

build:
check:
needs: evaluate

strategy:
fail-fast: false
matrix:
build: ${{ fromJSON(needs.evaluate.outputs.packages) }}
check: ${{ fromJSON(needs.evaluate.outputs.packages) }}

name: ${{ matrix.build.key }} on ${{ matrix.build.arch }}
name: ${{ matrix.check.key }} on ${{ matrix.check.arch }}

runs-on: ${{ matrix.build.os }}
runs-on: ${{ matrix.check.os }}

steps:
- name: Install Nix
Expand All @@ -57,5 +57,5 @@ jobs:
- name: Set up cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Build ${{ matrix.build.key }}
run: nix -L build github:${{ github.repository }}/${{ github.event.pull_request.head.sha || github.sha }}#${{ matrix.build.type }}.${{ matrix.build.arch }}.${{ matrix.build.key }} --no-update-lock-file
- name: Check ${{ matrix.check.key }}
run: nix -L check github:${{ github.repository }}/${{ github.event.pull_request.head.sha || github.sha }}#${{ matrix.check.type }}.${{ matrix.check.arch }}.${{ matrix.check.key }} --no-update-lock-file
42 changes: 0 additions & 42 deletions .github/workflows/lint.yml

This file was deleted.

0 comments on commit e0df5c7

Please sign in to comment.