Skip to content

Commit fa64655

Browse files
authored
Merge pull request #14 from per1234/test-go
Add CI workflow to test Go code
2 parents b70dd85 + 378b794 commit fa64655

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/test-go.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Go
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
paths:
7+
- ".github/workflows/test-go.yml"
8+
- "Taskfile.yml"
9+
- "**.go"
10+
pull_request:
11+
paths:
12+
- ".github/workflows/test-go.yml"
13+
- "Taskfile.yml"
14+
- "**.go"
15+
workflow_dispatch:
16+
repository_dispatch:
17+
18+
jobs:
19+
test:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v2
25+
26+
- name: Install Go
27+
uses: actions/setup-go@v2
28+
with:
29+
go-version: "1.14"
30+
31+
- name: Install Taskfile
32+
uses: arduino/actions/setup-taskfile@master
33+
with:
34+
repo-token: ${{ secrets.GITHUB_TOKEN }}
35+
version: 3.x
36+
37+
- name: Run tests
38+
run: task go:test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Arduino Library Manager submission parser
22

3+
[![Test Go status](https://github.com/arduino/library-manager-submission-parser/actions/workflows/test-go.yml/badge.svg)](https://github.com/arduino/library-manager-submission-parser/actions/workflows/test-go.yml)
34
[![Check Go status](https://github.com/arduino/library-manager-submission-parser/actions/workflows/check-go.yml/badge.svg)](https://github.com/arduino/library-manager-submission-parser/actions/workflows/check-go.yml)
45
[![Check Prettier Formatting status](https://github.com/arduino/library-manager-submission-parser/actions/workflows/check-prettier-formatting.yml/badge.svg)](https://github.com/arduino/library-manager-submission-parser/actions/workflows/check-prettier-formatting.yml)
56
[![Spell Check status](https://github.com/arduino/library-manager-submission-parser/actions/workflows/spell-check.yml/badge.svg)](https://github.com/arduino/library-manager-submission-parser/actions/workflows/spell-check.yml)

0 commit comments

Comments
 (0)