Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/docker-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Builds every Docker image this repo ships. Nothing else tests them before a
# tag: .goreleaser.yml and docker.yml only run on release tags.
name: Docker check

on:
workflow_dispatch:
push:
paths:
- Dockerfile
- Dockerfile.release
- .dockerignore
- docker/**
- .github/workflows/docker-check.yml

jobs:
src-cli-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Get Go version from mise
id: mise
run: echo "go-version=$(grep 'golang' mise.toml | cut -d'"' -f2)" >> "$GITHUB_OUTPUT"
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: ${{ steps.mise.outputs.go-version }}
cache: false
# Dockerfile.release expects the static linux binary goreleaser builds
# into the project root.
- name: Build src like goreleaser does
run: CGO_ENABLED=0 GOOS=linux go build -o src ./cmd/src
- name: Build Dockerfile.release
run: docker build --file Dockerfile.release --tag src-cli:release .
- run: docker run --rm src-cli:release version --client-only
- name: Build Dockerfile
run: docker build --tag src-cli:dev .
- run: docker run --rm src-cli:dev version --client-only

batch-change-volume-workspace-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Build docker/batch-change-volume-workspace
run: docker build --tag volume-workspace docker/batch-change-volume-workspace
- run: docker run --rm volume-workspace sh -c 'git --version && unzip -v'
25 changes: 25 additions & 0 deletions .github/workflows/npm-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Checks the npm package that goreleaser.yml publishes on release tags.
name: npm check

on:
workflow_dispatch:
push:
paths:
- npm-distribution/**
- .github/workflows/npm-check.yml

jobs:
npm-check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: npm-distribution
steps:
- name: Checkout
uses: actions/checkout@v7
# The install script downloads the release binary for package.json's
# version, which does not exist until the tag is published.
- run: npm ci --ignore-scripts
- run: node -e 'require("tar")'
# Runs the prepack script and lists what would ship.
- run: npm pack --dry-run
Loading