diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 658a468..133c4b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,16 +2,7 @@ name: CI -# Controls when the workflow will run -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: +on: [push, pull_request] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -20,13 +11,15 @@ jobs: strategy: matrix: go: [1.14, 1.17] + os: [ubuntu-latest, macos-latest, windows-latest] # 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: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Checkout code - uses: actions/checkout@v2 - name: Set up Go