Skip to content

Commit

Permalink
gha: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guicassolato committed Jun 27, 2024
1 parent 99d104c commit 1477e0a
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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: TopologyDOTFiles
path: tests/out/*.dot

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=intetration -v ./...

0 comments on commit 1477e0a

Please sign in to comment.