mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-11-29 15:56:48 +00:00
*: Limit integration testing to one at a time in CI
This commit is contained in:
parent
6f4737aedc
commit
47ce508089
53
.github/workflows/test.yml
vendored
53
.github/workflows/test.yml
vendored
|
|
@ -5,7 +5,18 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -22,9 +33,45 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
- name: Build
|
||||||
run: |
|
run: go build ./...
|
||||||
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
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue