Skip to content

Commit

Permalink
Merge pull request #8 from twharmon/workflows
Browse files Browse the repository at this point in the history
Use 2 separate workflows
  • Loading branch information
twharmon authored Jan 11, 2024
2 parents cd99ef0 + 94dcf38 commit 4fd25ea
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
branches:
- main
name: Coverage
jobs:
test:
strategy:
matrix:
go-version: [1.21]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Run coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
7 changes: 1 addition & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -10,7 +7,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.18]
go-version: [1.21]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -22,5 +19,3 @@ jobs:
uses: actions/checkout@v3
- name: Run coverage
run: go test -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 Travis Harmon <[email protected]>
Copyright 2024 Travis Harmon <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 4fd25ea

Please sign in to comment.