Skip to content

prime-factors: use slices package to sort and compare test cases #716

prime-factors: use slices package to sort and compare test cases

prime-factors: use slices package to sort and compare test cases #716

Workflow file for this run

name: Stub tests
on:
workflow_dispatch:
push:
branches:
- main
- master
pull_request:
jobs:
test:
name: Go ${{ matrix.go-version }} - ${{ matrix.os }}/${{ matrix.test-arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go-version: [1.21.x]
os: [ubuntu-22.04, windows-2022, macOS-latest]
test-arch: [amd64]
race: ["-race"]
include:
- go-version: 1.21.x
test-arch: "386"
os: ubuntu-22.04
race: ""
- go-version: 1.21.x
test-arch: "386"
os: windows-2022
race: ""
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{ matrix.go-version }}
- name: Run tests on stubs
shell: bash
env:
GOARCH: ${{ matrix.test-arch }}
run: |
./bin/run-tests test-stubs