build: update deprecated GitHub Actions (#17218)

Many of the GitHub Actions from the build pipeline are written in a truly
ancient version of NodeJS. Upgrade to more recent versions.

Remove RelEng from codeowners
This commit is contained in:
Tim Gross 2023-05-17 08:57:28 -04:00 committed by GitHub
parent 817b2cab9b
commit 710afecf61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 34 deletions

View File

@ -28,7 +28,7 @@ jobs:
outputs: outputs:
go-version: ${{ steps.get-go-version.outputs.go-version }} go-version: ${{ steps.get-go-version.outputs.go-version }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.build-ref }} ref: ${{ github.event.inputs.build-ref }}
- name: Determine Go version - name: Determine Go version
@ -43,7 +43,7 @@ jobs:
outputs: outputs:
product-version: ${{ steps.get-product-version.outputs.product-version }} product-version: ${{ steps.get-product-version.outputs.product-version }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.build-ref }} ref: ${{ github.event.inputs.build-ref }}
- name: get product version - name: get product version
@ -58,18 +58,18 @@ jobs:
filepath: ${{ steps.generate-metadata-file.outputs.filepath }} filepath: ${{ steps.generate-metadata-file.outputs.filepath }}
steps: steps:
- name: "Checkout directory" - name: "Checkout directory"
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.build-ref }} ref: ${{ github.event.inputs.build-ref }}
- name: Generate metadata file - name: Generate metadata file
id: generate-metadata-file id: generate-metadata-file
uses: hashicorp/actions-generate-metadata@v1.0.1 uses: hashicorp/actions-generate-metadata@v1.1.1
with: with:
version: ${{ needs.get-product-version.outputs.product-version }} version: ${{ needs.get-product-version.outputs.product-version }}
product: ${{ env.PKG_NAME }} product: ${{ env.PKG_NAME }}
repositoryOwner: "hashicorp" repositoryOwner: "hashicorp"
sha: ${{ github.event.inputs.build-ref }} sha: ${{ github.event.inputs.build-ref }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: metadata.json name: metadata.json
path: ${{ steps.generate-metadata-file.outputs.filepath }} path: ${{ steps.generate-metadata-file.outputs.filepath }}
@ -86,11 +86,11 @@ jobs:
name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.build-ref }} ref: ${{ github.event.inputs.build-ref }}
- name: Setup go - name: Setup go
uses: actions/setup-go@v2 uses: actions/setup-go@v4
with: with:
go-version: ${{ needs.get-go-version.outputs.go-version }} go-version: ${{ needs.get-go-version.outputs.go-version }}
@ -98,7 +98,7 @@ jobs:
run: make deps run: make deps
- name: Setup node and yarn - name: Setup node and yarn
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: "14" node-version: "14"
cache-dependency-path: "ui/yarn.lock" cache-dependency-path: "ui/yarn.lock"
@ -120,7 +120,7 @@ jobs:
run: | run: |
make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip
mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
@ -137,11 +137,11 @@ jobs:
name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.build-ref }} ref: ${{ github.event.inputs.build-ref }}
- name: Setup go - name: Setup go
uses: actions/setup-go@v2 uses: actions/setup-go@v4
with: with:
go-version: ${{ needs.get-go-version.outputs.go-version }} go-version: ${{ needs.get-go-version.outputs.go-version }}
@ -149,7 +149,7 @@ jobs:
run: make deps run: make deps
- name: Setup node and yarn - name: Setup node and yarn
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: "14" node-version: "14"
cache-dependency-path: "ui/yarn.lock" cache-dependency-path: "ui/yarn.lock"
@ -196,7 +196,7 @@ jobs:
run: | run: |
make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip
mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
@ -224,12 +224,12 @@ jobs:
echo "RPM_PACKAGE=$(basename out/*.rpm)" >> $GITHUB_ENV echo "RPM_PACKAGE=$(basename out/*.rpm)" >> $GITHUB_ENV
echo "DEB_PACKAGE=$(basename out/*.deb)" >> $GITHUB_ENV echo "DEB_PACKAGE=$(basename out/*.deb)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: ${{ env.RPM_PACKAGE }} name: ${{ env.RPM_PACKAGE }}
path: out/${{ env.RPM_PACKAGE }} path: out/${{ env.RPM_PACKAGE }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: ${{ env.DEB_PACKAGE }} name: ${{ env.DEB_PACKAGE }}
path: out/${{ env.DEB_PACKAGE }} path: out/${{ env.DEB_PACKAGE }}
@ -246,12 +246,12 @@ jobs:
name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.build-ref }} ref: ${{ github.event.inputs.build-ref }}
- name: Setup go - name: Setup go
uses: actions/setup-go@v2 uses: actions/setup-go@v4
with: with:
go-version: ${{ needs.get-go-version.outputs.go-version }} go-version: ${{ needs.get-go-version.outputs.go-version }}
@ -259,7 +259,7 @@ jobs:
run: make deps run: make deps
- name: Setup node and yarn - name: Setup node and yarn
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: "14" node-version: "14"
cache-dependency-path: "ui/yarn.lock" cache-dependency-path: "ui/yarn.lock"
@ -281,7 +281,7 @@ jobs:
run: | run: |
make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip
mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
@ -303,7 +303,7 @@ jobs:
# version: ${{needs.get-product-version.outputs.product-version}} # version: ${{needs.get-product-version.outputs.product-version}}
# steps: # steps:
# - uses: actions/checkout@v2 # - uses: actions/checkout@v3
# - name: Docker Build (Action) # - name: Docker Build (Action)
# uses: hashicorp/actions-docker-build@v1 # uses: hashicorp/actions-docker-build@v1
# with: # with:

View File

@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2-beta - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
- uses: backspace/ember-asset-size-action@edit-comment - uses: backspace/ember-asset-size-action@edit-comment

View File

@ -15,36 +15,36 @@ jobs:
time-base: time-base:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.pull_request.base.sha }} ref: ${{ github.event.pull_request.base.sha }}
- uses: nanasess/setup-chromedriver@master - uses: nanasess/setup-chromedriver@master
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
- run: yarn --frozen-lockfile - run: yarn --frozen-lockfile
- run: mkdir -p /tmp/test-reports - run: mkdir -p /tmp/test-reports
- run: npx ember-test-audit 1 --json --output ../base-audit.json - run: npx ember-test-audit 1 --json --output ../base-audit.json
- name: Upload result - name: Upload result
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: base-audit name: base-audit
path: base-audit.json path: base-audit.json
time-pr: time-pr:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: nanasess/setup-chromedriver@master - uses: nanasess/setup-chromedriver@master
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
- run: yarn --frozen-lockfile - run: yarn --frozen-lockfile
- run: mkdir -p /tmp/test-reports - run: mkdir -p /tmp/test-reports
- run: npx ember-test-audit 1 --json --output ../pr-audit.json - run: npx ember-test-audit 1 --json --output ../pr-audit.json
- name: Upload result - name: Upload result
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: pr-audit name: pr-audit
path: pr-audit.json path: pr-audit.json

View File

@ -53,7 +53,7 @@ jobs:
exit 1 exit 1
fi fi
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup Git - name: Setup Git
run: | run: |
@ -72,12 +72,12 @@ jobs:
echo "::set-output name=go-version::$(cat .go-version)" echo "::set-output name=go-version::$(cat .go-version)"
- name: Setup go - name: Setup go
uses: actions/setup-go@v2 uses: actions/setup-go@v4
with: with:
go-version: ${{ steps.get-go-version.outputs.go-version }} go-version: ${{ steps.get-go-version.outputs.go-version }}
- name: Setup node and yarn - name: Setup node and yarn
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: "14" node-version: "14"
cache-dependency-path: "ui/yarn.lock" cache-dependency-path: "ui/yarn.lock"

View File

@ -14,5 +14,5 @@ jobs:
# Skip any PR created by dependabot to avoid permission issues # Skip any PR created by dependabot to avoid permission issues
if: (github.actor != 'dependabot[bot]') if: (github.actor != 'dependabot[bot]')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: returntocorp/semgrep-action@v1 - uses: returntocorp/semgrep-action@v1

View File

@ -1,4 +1,4 @@
# release configuration # release configuration
/.release/ @hashicorp/release-engineering @hashicorp/github-nomad-core @hashicorp/nomad-eng /.release/ @hashicorp/github-nomad-core @hashicorp/nomad-eng
/.github/workflows/build.yml @hashicorp/release-engineering @hashicorp/github-nomad-core @hashicorp/nomad-eng /.github/workflows/build.yml @hashicorp/github-nomad-core @hashicorp/nomad-eng