all: add a Github Workflow to run tests (#307)
This commit is contained in:
39
.github/workflows/tests.yml
vendored
Normal file
39
.github/workflows/tests.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# Copyright 2021 The Wire Authors
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
name: Wire Tests
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
# Run most recent version of Go on all supported OSs.
|
||||||
|
# When updating Go versions, also edit the version test in
|
||||||
|
# internal/runtests.sh.
|
||||||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
go-version: 1.17.x
|
||||||
|
# Also run previous version of Go, but only on Ubuntu.
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
go-version: 1.16.x
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go-version }}
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Test
|
||||||
|
'internal/runtests.sh'
|
||||||
Reference in New Issue
Block a user