[chore] CI: linux, macos, windows

pull/114/head
yoko 3 years ago committed by GitHub
parent 3c75f07d2b
commit 01bb6d55be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,16 +2,7 @@
name: CI name: CI
# Controls when the workflow will run on: [push, pull_request]
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
@ -20,13 +11,15 @@ jobs:
strategy: strategy:
matrix: matrix:
go: [1.14, 1.17] go: [1.14, 1.17]
os: [ubuntu-latest, macos-latest, windows-latest]
# The type of runner that the job will run on # The type of runner that the job will run on
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout code
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Go - name: Set up Go

Loading…
Cancel
Save