Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 11 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,14 @@ jobs:
- name: Install Nix
if: steps.filter.outputs.source_code == 'true'
uses: DeterminateSystems/nix-installer-action@main

- name: Format check
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c bash -c "make fmt && git diff --exit-code"

- name: Check
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c make check

- name: Sql check
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c make check-sql

- name: Build
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c make build

- name: Generated files check
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c bash -c "make generate && git diff --exit-code"

- name: Test
if: steps.filter.outputs.source_code == 'true'
run: nix develop .#ci -c make test

- name: CI
run: |
nix develop .#ci --command bash -c '
make fmt && git diff --exit-code
make check
make check-sql
make build
make generate && git diff --exit-code
make test
'
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DEFAULT_GOAL := build


BIN_DIR := bin
API_NAME := acmcsuf-api
CLI_NAME := acmcsuf-cli
Expand Down
Loading