Bump actions/checkout from 3 to 4 #171
Workflow file for this run
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
# Copyright 2021 Ross Light | |
# SPDX-License-Identifier: ISC | |
name: Build | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
go: ["1.20", "1.19"] | |
arch: [amd64] | |
include: | |
- os: ubuntu-latest | |
go: "1.20" | |
arch: "386" | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Run tests with race detector | |
run: go test -mod=readonly -race -tags="libc.memgrind" -v ./... | |
if: ${{ matrix.arch == 'amd64' }} | |
env: | |
GOARCH: ${{ matrix.arch }} | |
- name: Run tests without race detector | |
run: go test -mod=readonly -v -tags="libc.memgrind" ./... | |
if: ${{ matrix.arch != 'amd64' }} | |
env: | |
GOARCH: ${{ matrix.arch }} | |
migrate: | |
name: Migration Tool | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: go test -mod=readonly -race -v ./... | |
working-directory: ./cmd/zombiezen-sqlite-migrate |