mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
37 lines
735 B
YAML
37 lines
735 B
YAML
name: Build and tests
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- 1.14.x
|
|
- 1.15.x
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
GOPROXY: https://proxy.golang.org
|
|
|
|
steps:
|
|
|
|
- name: Set up Go ${{ matrix.go-version }}
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
id: go
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Build
|
|
run: |
|
|
go run build.go --goos linux
|
|
go run build.go --goos windows
|
|
go run build.go --goos darwin
|
|
|
|
- name: Run tests
|
|
run: |
|
|
export PATH=$HOME/bin:$PATH
|
|
go test ./...
|