diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cb0bbbd..0c960723 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,11 +23,11 @@ jobs: - {GOOS: freebsd, GOARCH: amd64} steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: 1.x - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Build binary @@ -63,7 +63,7 @@ jobs: GOARCH: ${{ matrix.GOARCH }} GOARM: ${{ matrix.GOARM }} - name: Upload workflow artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: age-binaries path: age-* @@ -76,7 +76,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download workflow artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: age-binaries - name: Upload release artifacts diff --git a/.github/workflows/ronn.yml b/.github/workflows/ronn.yml index 504a77b6..96ece2d3 100644 --- a/.github/workflows/ronn.yml +++ b/.github/workflows/ronn.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install ronn run: sudo apt-get update && sudo apt-get install -y ronn - name: Run ronn @@ -43,9 +43,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download generated files - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: man-pages path: doc/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 55b7ca8a..00793ece 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,15 +13,32 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Install Go ${{ matrix.go }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Run tests run: go test -race ./... + freebsd: + name: Test (FreeBSD) + runs-on: macos-10.15 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Run tests + # Unpinned Action allowed with read-only permissions. + uses: vmactions/freebsd-vm@v0 + with: + prepare: | + freebsd-version + pkg install -y go + go version + run: go test -buildvcs=false -race ./... gotip: name: Test (Go tip) strategy: @@ -43,7 +60,7 @@ jobs: cd $HOME/gotip/src && ./make.bat echo "$HOME/gotip/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - run: go version