Skip to content

refactor(Go): update SlangroomExec to accept a struct as input #53

refactor(Go): update SlangroomExec to accept a struct as input

refactor(Go): update SlangroomExec to accept a struct as input #53

Workflow file for this run

name: 🧪 & 📣
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
# - windows-latest
architecture:
- x64
- arm64
# exclude:
# - os: windows-latest
# architecture: arm64
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/setup
- run: make tests
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build slangroom-exec
run: make slangroom-exec
working-directory: bindings/go
- name: Add slangroom-exec to PATH
run: echo "${{ github.workspace }}/bindings/go" >> $GITHUB_PATH
working-directory: bindings/go
- name: Go Tests
run: go test ./...
working-directory: bindings/go
release:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/setup
- run: make all
- run: bun x semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}