Skip to content

Commit

Permalink
*: Limit integration testing to one at a time in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Nov 4, 2023
1 parent 6f4737a commit 47ce508
Showing 1 changed file with 50 additions and 3 deletions.
53 changes: 50 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ on:
pull_request:

jobs:
test:
nix-env:
name: Initialize Nix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install Nix packages
uses: diamondburned/cache-install@main

generate:
name: Generate
needs: [nix-env]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -22,9 +33,45 @@ jobs:
exit 1
fi
build:
name: Build
runs-on: ubuntu-latest
needs: [generate]
steps:
- uses: actions/checkout@v2

- name: Install Nix packages
uses: diamondburned/cache-install@main

- name: Build
run: |
go build ./...
run: go build ./...

- name: Run Unit Tests
run: go test ./...

unit-test:
name: Unit Test
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2

- name: Install Nix packages
uses: diamondburned/cache-install@main

- name: Test
run: go test ./...

integration-test:
name: Integration Test
concurrency: integration-test
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2

- name: Install Nix packages
uses: diamondburned/cache-install@main

- name: Test
run: |
Expand Down

0 comments on commit 47ce508

Please sign in to comment.