Skip to content

Commit

Permalink
add ci full setup runs
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmccracken committed Dec 27, 2024
1 parent 5b9ead9 commit 01e6f82
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 20 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ws_tool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,22 @@ jobs:
submodules: recursive
ref: ${{ github.event.pull_request.head.ref }}
- run: ws_tool/test/bats/bin/bats ws_tool/test

full-setup:
strategy:
matrix:
os:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
- macos-13 # x86
- macos-latest # aarch
- ubuntu-latest
permissions:
id-token: write
contents: read
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
ref: ${{ github.event.pull_request.head.ref }}
- run: bash ws_tool/test/ci_full_setup.bash
20 changes: 0 additions & 20 deletions ws_tool/test/ci.sh

This file was deleted.

20 changes: 20 additions & 0 deletions ws_tool/test/ci_full_setup.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

set -xeuo pipefail

rm -rf $HOME/.config/workstation

unset WORKSTATION_DIR
export WORKSTATION_VERSION="$GITHUB_SHA"

bash <(curl "https://raw.githubusercontent.com/joelmccracken/workstation/${WORKSTATION_VERSION}/ws_tool/ws_install.sh")

cd ~/.config/workstation/workstation_source/ws_tool

if [ "$RUNNER_OS" == "macOS" ]; then
WORKSTATION_NAME=ci_macos
else
WORKSTATION_NAME=ci_ubuntu
fi

ws_tool/ws bootstrap -n "$WORKSTATION_NAME" --initial-config-dir ./test/test_config

0 comments on commit 01e6f82

Please sign in to comment.