Skip to content

Commit

Permalink
Fixed wrong GitHub Actions definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Vachon committed Dec 19, 2020
1 parent 9d64744 commit d606306
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/develop.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
name: Build and Test

on:
push:
branches:
- master
- develop
pull_request:
branches:
- "**"

jobs:
build:
runs-on: ubuntu-16.04
runs-on: ubuntu-18.04
strategy:
matrix:
go: [ 1.15', '1.14' ]
name: Go ${{ matrix.go }} sample
steps:
- uses: actions/checkout@v2

- name: Setup go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}

- uses: actions/checkout@v2

- name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Tests
run: go test ./...

0 comments on commit d606306

Please sign in to comment.