Skip to content

Add Duels and Result's Strength and Advantage (#3) #13

Add Duels and Result's Strength and Advantage (#3)

Add Duels and Result's Strength and Advantage (#3) #13

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Cache Go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.54.2
args: --timeout 10m
- name: Vet
if: matrix.os == 'ubuntu-latest'
run: go vet -v ./...
- name: Build
env:
CGO_ENABLED: 0
run: go build -ldflags "-s -w" ./...
- name: Test
run: go test -v -race ./...