Add CloseWhenDone function #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**' | |
- '!.github/**' | |
- '!.gitignore' | |
- '.github/workflows/test.yml' | |
workflow_dispatch: | |
jobs: | |
nix: | |
name: go test | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Nix | |
uses: cachix/install-nix-action@v16 | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Run tests | |
run: nix-shell --pure --run 'go test' | |
windows: | |
name: go test (Windows) | |
runs-on: windows-2022 | |
steps: | |
- name: Install Go | |
uses: actions/[email protected] | |
with: | |
go-version: "1.19.1" | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Run tests | |
run: go test |