Skip to content

Added Software

Added Software #7

Workflow file for this run

---
name: Sofrware CI
on:
push:
branches:
- main
tags:
- '*'
paths:
- 'software/**'
- '.github/workflows/software.yml'
pull_request:
paths:
- 'software/**'
- '.github/workflows/software.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
staticcheck:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
steps:
# Get the repositery's code
- name: Checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v4
with:
go-version: '1.23.x'
check-latest: true
cache: true
cache-dependency-path: software/go.sum
- name: Go test
working-directory: ./software
run: "go test ./..."
- name: Go ver
working-directory: ./software
run: "go vet ./..."
- name: StaticCheck
uses: dominikh/[email protected]
with:
version: "2024.1.1"
install-go: false
working-directory: ./software
test:
strategy:
fail-fast: false
matrix:
platform:
- ubuntu
go:
- 21
- 22
- 23
name: 'tests on ${{ matrix.platform }} | 1.${{ matrix.go }}.x'
runs-on: ${{ matrix.platform }}-latest
steps:
# Get the repositery's code
- name: Checkout
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v4
with:
go-version: '1.${{ matrix.go }}.x'
check-latest: true
cache: true
cache-dependency-path: software/go.sum
- name: Run tests
working-directory: ./software
run: "go clean -testcache && go test -race -cover -covermode=atomic ./..."