mirror of
https://github.com/emmansun/gmsm.git
synced 2025-09-23 15:23:49 +08:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.13.0 to 2.13.1.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](ec9f2d5744...f4a75cfd61
)
---
updated-dependencies:
- dependency-name: step-security/harden-runner
dependency-version: 2.13.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
75 lines
2.0 KiB
YAML
75 lines
2.0 KiB
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [ "develop", "main" ]
|
|
pull_request:
|
|
branches: [ "develop", "main" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
goVer: ['1.23', '1.24']
|
|
steps:
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version: ${{ matrix.goVer }}
|
|
|
|
- name: Test with Coverage
|
|
if: ${{ matrix.goVer == '1.24' }}
|
|
run: go test -coverpkg=./... -v -short -race -coverprofile=coverage1.txt -covermode=atomic ./...
|
|
env:
|
|
GODEBUG: x509sha1=1
|
|
|
|
- name: Test Generic with Coverage
|
|
if: ${{ matrix.goVer == '1.24' }}
|
|
run: go test -coverpkg=./... -v -short -tags purego -coverprofile=coverage2.txt -covermode=atomic ./...
|
|
env:
|
|
GODEBUG: x509sha1=1
|
|
|
|
- name: Upload coverage to Codecov
|
|
if: ${{ matrix.goVer == '1.24' }}
|
|
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
|
|
with:
|
|
files: ./coverage1.txt,./coverage2.txt
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
- name: Test Force SM4 Single Block with AES-NI
|
|
run: go test -short ./sm4/...
|
|
env:
|
|
FORCE_SM4BLOCK_AESNI: 1
|
|
|
|
- name: Test only
|
|
if: ${{ matrix.goVer != '1.24' }}
|
|
run: go test -short ./...
|
|
env:
|
|
GODEBUG: x509sha1=1
|
|
|
|
- name: Test Generic only
|
|
if: ${{ matrix.goVer != '1.24' }}
|
|
run: go test -short -tags purego ./...
|
|
env:
|
|
GODEBUG: x509sha1=1
|
|
|
|
- name: Test Plugin only
|
|
if: ${{ matrix.goVer == '1.24' }}
|
|
run: go test -short -tags plugin ./...
|
|
env:
|
|
GODEBUG: x509sha1=1
|