Skip to content

chore(deps): update actions/checkout action to v4 #94

chore(deps): update actions/checkout action to v4

chore(deps): update actions/checkout action to v4 #94

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [1.15.x, 1.16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Test
run: go test ./...
build:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: "build"
run: |
make release-all
- uses: actions/upload-artifact@v2
with:
name: release
path: release/*
create:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
needs: build
steps:
- uses: actions/download-artifact@v3
with:
name: release
- run: chmod +x integrity*
if: ${{ matrix.os != 'windows-latest' }}
- run: ./integrity.exe create -n "100.00.0" --filename sans-integrity-${{ matrix.os }}.yml
if: ${{ matrix.os == 'windows-latest' }}
- run: ./integrity-linux create -n "200.00.0" --filename sans-integrity-${{ matrix.os }}.yml
if: ${{ matrix.os == 'ubuntu-latest' }}
- run: ./integrity create -n "300.00.0" --filename sans-integrity-${{ matrix.os }}.yml
if: ${{ matrix.os == 'macos-latest' }}
- uses: actions/upload-artifact@v2
with:
name: integrity-${{ matrix.os }}
path: sans-integrity*
validate:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
dst_os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
needs:
- create
steps:
- uses: actions/download-artifact@v3
with:
name: release
- uses: actions/download-artifact@v3
with:
name: integrity-${{ matrix.dst_os }}
- run: chmod +x integrity*
if: ${{ matrix.os != 'windows-latest' }}
- run: ./integrity.exe validate --filename sans-integrity-${{ matrix.dst_os }}.yml
if: ${{ matrix.os == 'windows-latest' }}
- run: ./integrity-linux validate --filename sans-integrity-${{ matrix.dst_os }}.yml
if: ${{ matrix.os == 'ubuntu-latest' }}
- run: ./integrity validate --filename sans-integrity-${{ matrix.dst_os }}.yml
if: ${{ matrix.os == 'macos-latest' }}