Skip to content

Commit

Permalink
Add first version of test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Nov 20, 2019
1 parent 57e5500 commit 80fcd85
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Test

on:
push:
branches-ignore:
- master
tags-ignore:
- "*"
pull_request:
types: [opened, reopened]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
#- name: Lint YAML files
# run: docker run --rm -v $(pwd):/data docker.io/cytopia/yamllint .

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: /home/runner/go/pkg/mod
key: go-mod
- name: Run unit tests
run: go test ./...

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: /home/runner/go/pkg/mod
key: go-mod
- uses: goreleaser/goreleaser-action@v1
with:
args: release --snapshot

0 comments on commit 80fcd85

Please sign in to comment.