github.com/zhangyunhao116/fastrand@v0.4.0/.github/workflows/go.yml (about) 1 # This is a basic workflow to help you get started with Actions 2 3 name: CI 4 5 # Controls when the action will run. Triggers the workflow on push or pull request 6 # events but only for the master branch 7 on: 8 push: 9 branches: [master] 10 pull_request: 11 branches: [master] 12 13 # A workflow run is made up of one or more jobs that can run sequentially or in parallel 14 jobs: 15 # This workflow contains a single job called "build" 16 build: 17 # The type of runner that the job will run on 18 runs-on: ${{ matrix.os }} 19 strategy: 20 matrix: 21 go-version: [1.13, 1.18, 1.19, 1.22] 22 os: 23 [ 24 ubuntu-latest, 25 macos-latest, 26 windows-latest, 27 ] 28 29 # Steps represent a sequence of tasks that will be executed as part of the job 30 steps: 31 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 32 - uses: actions/checkout@v2 33 34 - name: CI 35 run: | 36 go test -race