Skip to content

Merge pull request #8 from jsr-probitas/feature/add-http-testing-endp… #9

Merge pull request #8 from jsr-probitas/feature/add-http-testing-endp…

Merge pull request #8 from jsr-probitas/feature/add-http-testing-endp… #9

name: Build echo-http
on:
push:
branches: [main]
paths:
- "echo-http/**"
- "flake.*"
- ".github/workflows/build.echo-http.yml"
pull_request:
branches: [main]
paths:
- "echo-http/**"
- "flake.*"
- ".github/workflows/build.echo-http.yml"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix develop -c just echo-http::lint
- run: nix develop -c just echo-http::fmt
- run: git diff --exit-code
test:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix develop -c just echo-http::test
build:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix develop -c just echo-http::build