mirror of
https://github.com/luxfi/lattice.git
synced 2026-09-24 00:25:44 +00:00
Replace Travis CI by GitHub Actions (#117)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
name: Go tests
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
ci:
|
||||
name: Go ${{ matrix.go }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go: [ '1.16', '1.15', '1.14', '1.13' ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Build
|
||||
run: go build ./...
|
||||
|
||||
- name: Run tests
|
||||
run: make ci_test
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.x
|
||||
- 1.14.x
|
||||
- 1.13.x
|
||||
|
||||
script:
|
||||
- go build ./...
|
||||
- make ci_test
|
||||
Reference in New Issue
Block a user