Install latest NodeJS using apt-get (#581) #141
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release | |
| on: | |
| push: | |
| tags: ['v0*'] | |
| # We need to do an API code review before we allow v1. | |
| # Our command and package are not yet stable. | |
| permissions: | |
| contents: write | |
| jobs: | |
| release_kiln: | |
| name: "Release Kiln" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.RELEEN_GITHUB_TOKEN }} | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build | |
| run: | | |
| go build ./... | |
| - name: Setup SSH | |
| uses: webfactory/ssh-agent@v0.7.0 | |
| with: | |
| ssh-private-key: ${{ secrets.RELENG_CI_BOT_KEY }} | |
| - name: Unit Test | |
| env: | |
| GITHUB_ACCESS_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }} | |
| run: | | |
| go test --covermode=atomic --coverprofile=kiln-${{ github.sha }}-unit-test-code-coverage.out -skip 'TestDockerIntegration|TestAcceptance' ./... | |
| - name: Archive Unit Test Code Coverage Output | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Unit Test Code Coverage Output | |
| path: kiln-${{github.sha}}-unit-test-code-coverage.out | |
| - name: Acceptance Tests | |
| env: | |
| CGO_ENABLED: '0' | |
| GITHUB_ACCESS_TOKEN: ${{ secrets.RELEEN_GITHUB_TOKEN }} | |
| run: | | |
| set -euo pipefail | |
| go test -v --timeout 24h --tags acceptance github.com/pivotal-cf/kiln/internal/acceptance/workflows | |
| git reset --hard HEAD | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v2 | |
| with: | |
| distribution: goreleaser | |
| version: "~> v2" | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |