Skip to content

Commit

Permalink
run test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmru committed Apr 21, 2021
1 parent 7eaf0f2 commit 25bc70e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test
on: [push]
jobs:

build:
name: Test and Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.16.3
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download

- name: Test
run: go test ./pkg/*

- name: Build
run: go build
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Dependency directories (remove the comment below to include it)
# vendor/

medit
ipa-medit

# goreleaser
dist/
Expand Down

0 comments on commit 25bc70e

Please sign in to comment.