Skip to content

Merge pull request #457 from step-security/cherry/armour-update #892

Merge pull request #457 from step-security/cherry/armour-update

Merge pull request #457 from step-security/cherry/armour-update #892

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
push:
permissions: read-all
env:
GOPRIVATE: github.com/step-security
jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5
- name: Set up Go
uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4
with:
go-version: 1.24.1
- name: Configure .netrc
run: |
if [[ ! -e "~/.netrc" ]]; then
touch ~/.netrc
fi
printf "machine github.com login stepsecurity-infra-bot password ${{ secrets.PAT }}" >>~/.netrc
- name: Create go vendor dir
run: |
go mod vendor
- name: Run coverage
run: sudo CI=true go test -race -coverprofile=coverage.txt -covermode=atomic
- uses: codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865