Skip to content

fix(web): password input type + ci reusable workflow + multi-arch images #1282

fix(web): password input type + ci reusable workflow + multi-arch images

fix(web): password input type + ci reusable workflow + multi-arch images #1282

name: Apps / Workspace Engine
on:
pull_request:
branches: ["*"]
paths:
- apps/workspace-engine/**
- .github/workflows/apps-workspace-engine.yaml
push:
branches: ["main"]
paths:
- apps/workspace-engine/**
- .github/workflows/apps-workspace-engine.yaml
jobs:
tests:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
defaults:
run:
working-directory: apps/workspace-engine
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.25"
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: go mod download
- name: Run tests with coverage
run: go test -race ./...
build:
uses: ./.github/workflows/build-image.yaml
secrets: inherit
with:
image-name: ctrlplane/workspace-engine
dockerfile: apps/workspace-engine/Dockerfile
context: apps/workspace-engine