mirror of
https://github.com/guggero/chantools.git
synced 2026-08-13 12:33:34 +02:00
GitHub: run integration tests in CI
This commit is contained in:
parent
7a16387300
commit
d6351bcfeb
1 changed files with 24 additions and 6 deletions
30
.github/workflows/main.yml
vendored
30
.github/workflows/main.yml
vendored
|
|
@ -13,9 +13,6 @@ defaults:
|
|||
shell: bash
|
||||
|
||||
env:
|
||||
# go needs absolute directories, using the $HOME variable doesn't work here.
|
||||
GOCACHE: /home/runner/work/go/pkg/build
|
||||
GOPATH: /home/runner/work/go
|
||||
GO_VERSION: 1.23.9
|
||||
|
||||
jobs:
|
||||
|
|
@ -27,7 +24,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: git checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
|
@ -42,10 +39,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: git checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: setup go ${{ env.GO_VERSION }}
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '${{ env.GO_VERSION }}'
|
||||
|
||||
|
|
@ -54,3 +51,24 @@ jobs:
|
|||
|
||||
- name: run unit tests
|
||||
run: make unit
|
||||
|
||||
########################
|
||||
# run integration tests
|
||||
########################
|
||||
integration-test:
|
||||
name: run integration tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: git checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: setup go ${{ env.GO_VERSION }}
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '${{ env.GO_VERSION }}'
|
||||
|
||||
- name: Install chantools
|
||||
run: make install
|
||||
|
||||
- name: run integration tests
|
||||
run: make itest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue