feat: add tooltip field to workspace app (#435) #137
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
# This GitHub action can publish assets for release when a tag is created. | |
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0). | |
# | |
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your | |
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE` | |
# secret. If you would rather own your own GPG handling, please fork this action | |
# or use an alternative one for key handling. | |
# | |
# You will need to pass the `--batch` flag to `gpg` in your signing step | |
# in `goreleaser` to indicate this is being used in a non-interactive mode. | |
# | |
name: release | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
test: | |
name: Run Integration Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v5 | |
- name: Check Go Versions | |
run: ./scripts/check_go_version.sh | |
- name: Set up Go | |
uses: actions/setup-go@v6 | |
with: | |
go-version: "1.24.2" | |
id: go | |
- name: Get dependencies | |
run: | | |
go mod download | |
- name: Build | |
env: | |
CGO_ENABLED: "0" | |
run: | | |
go build -v . | |
- name: Check Versions | |
id: checkversions | |
run: | | |
source <(go run ./scripts/coderversion) | |
echo "CODER_MAINLINE_VERSION=${CODER_MAINLINE_VERSION}" >> "${GITHUB_OUTPUT}" | |
echo "CODER_STABLE_VERSION=${CODER_STABLE_VERSION}" >> "${GITHUB_OUTPUT}" | |
echo "CODER_OLDSTABLE_VERSION=${CODER_OLDSTABLE_VERSION}" >> "${GITHUB_OUTPUT}" | |
- name: Run integration test (mainline) | |
env: | |
CODER_IMAGE: "ghcr.io/coder/coder" | |
CODER_VERSION: ${{ steps.checkversions.outputs.CODER_MAINLINE_VERSION }} | |
run: | | |
go test -v ./integration | |
- name: Run integration test (stable) | |
env: | |
CODER_IMAGE: "ghcr.io/coder/coder" | |
CODER_VERSION: ${{ steps.checkversions.outputs.CODER_STABLE_VERSION }} | |
run: | | |
go test -v ./integration | |
- name: Run integration test (oldstable) | |
env: | |
CODER_IMAGE: "ghcr.io/coder/coder" | |
CODER_VERSION: ${{ steps.checkversions.outputs.CODER_OLDSTABLE_VERSION }} | |
run: | | |
go test -v ./integration | |
goreleaser: | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Check Go Versions | |
run: ./scripts/check_go_version.sh | |
- name: Unshallow | |
run: git fetch --prune --unshallow | |
- name: Set up Go | |
uses: actions/setup-go@v6 | |
with: | |
go-version: "1.24.2" | |
- name: Import GPG key | |
id: import_gpg | |
uses: crazy-max/[email protected] | |
with: | |
# These secrets will need to be configured for the repository: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.PASSPHRASE }} | |
- name: Run GoReleaser | |
uses: goreleaser/[email protected] | |
with: | |
version: '~> v2' | |
args: release --clean | |
env: | |
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | |
# GitHub sets this automatically | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |