Skip to content

Merge pull request #143 from Peefy/kcl-lib-zig-init-version #335

Merge pull request #143 from Peefy/kcl-lib-zig-init-version

Merge pull request #143 from Peefy/kcl-lib-zig-init-version #335

Workflow file for this run

name: go-test
on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
branches:
- main
paths:
- "go/**"
- "go.mod"
- "go.sum"
- ".github/workflows/go-test.yaml"
workflow_dispatch:
permissions:
contents: read
jobs:
test:
strategy:
matrix:
os: [macos-12, macos-latest, ubuntu-20.04, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: "go"
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- uses: korandoru/setup-zig@v1
with:
zig-version: master
- name: Ready msys2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-toolchain
path-type: inherit
if: matrix.os == 'windows-latest'
- name: Go code test
run: go test ./...