Skip to content

[test] Issues/11-2

[test] Issues/11-2 #70

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- '*'
paths-ignore:
- '**.md'
- 'LICENSE'
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Test with the Go CLI
run: go test -tags=unit -v ./...
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: UnitTestsOutput
path: |
tests/out/*
!tests/out/.gitkeep
intetration-tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Test with the Go CLI
run: go test -tags=integration -v ./...
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: IntegrationTestsOutput
path: |
tests/out/*
!tests/out/.gitkeep
examples-unit-tests:
name: Examples Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Test with the Go CLI
working-directory: ./examples
run: go test -tags=unit -v ./...
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: UnitTestsOutput
path: |
tests/out/*
!tests/out/.gitkeep
examples-intetration-tests:
name: Examples integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Test with the Go CLI
working-directory: ./examples
run: go test -tags=integration -v ./...
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: IntegrationTestsOutput
path: |
tests/out/*
!tests/out/.gitkeep