Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 3dace5d

Browse files
committed
Update GitHub Actions
1 parent fcf0d65 commit 3dace5d

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
on:
2-
push:
3-
branches:
4-
- main
52
pull_request:
63
branches:
74
- main
85

9-
name: Create Release
6+
name: Pull Request
107
jobs:
118
test:
129
strategy:

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Tests
7+
jobs:
8+
test:
9+
strategy:
10+
matrix:
11+
go-version: [1.15.x, 1.16.x]
12+
os: [ubuntu-latest, macos-latest] # windows-latest
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Installing Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: ${{ matrix.go-version }}
19+
- name: Checking out code
20+
uses: actions/checkout@v2
21+
- uses: actions/cache@v2
22+
with:
23+
path: |
24+
~/go/pkg/mod
25+
~/.cache/go-build
26+
~/Library/Caches/go-build
27+
%LocalAppData%\go-build
28+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
29+
restore-keys: |
30+
${{ runner.os }}-go-
31+
- name: Running tests
32+
run: go test -v -short ./...

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg)](https://github.com/RichardLitt/standard-readme)
44
[![Go Report Card](https://goreportcard.com/badge/github.com/dennis-tra/pcp)](https://goreportcard.com/report/github.com/dennis-tra/pcp)
55
[![Maintainability](https://api.codeclimate.com/v1/badges/de64b09a3731b8a8842b/maintainability)](https://codeclimate.com/github/dennis-tra/pcp/maintainability)
6-
[![Latest CI run result](https://github.com/dennis-tra/pcp/actions/workflows/pull-request.yml/badge.svg)](https://github.com/dennis-tra/pcp/actions)
6+
[![Latest test suite run result](https://github.com/dennis-tra/pcp/actions/workflows/tests.yml/badge.svg)](https://github.com/dennis-tra/pcp/actions)
77
[![Github Releases Download Count](https://img.shields.io/github/downloads/dennis-tra/pcp/total.svg)]()
88

99
[comment]: <> ([![Test Coverage]&#40;https://api.codeclimate.com/v1/badges/de64b09a3731b8a8842b/test_coverage&#41;]&#40;https://codeclimate.com/github/dennis-tra/pcp/test_coverage&#41;)

0 commit comments

Comments
 (0)