Skip to content

Commit

Permalink
fix: Split testing from publishing pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
sradevski committed Jun 15, 2023
1 parent 13fe584 commit 30f8171
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 28 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.19.x, 1.20.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- run: go test ./...

test-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
- run: go test -v -race ./...
28 changes: 0 additions & 28 deletions .github/workflows/go.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
push:
branches: ["main"]
name: Publish
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.18
- run: GOPROXY=proxy.golang.org go list -m github.com/junitechnology/jpipe

0 comments on commit 30f8171

Please sign in to comment.