Skip to content

Commit

Permalink
Adding a very basic CI test that just installs the shell.
Browse files Browse the repository at this point in the history
ASGS can take a long time to build everything, so this is a very short
test that makes sure that the shell can be installed via:

  ./init-asgs.sh -b -x "--update-shell"

This will generate ./asgsh and ./update-asgs.
  • Loading branch information
wwlwpd committed Sep 14, 2024
1 parent 6db239c commit 37e22e7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/01-basic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Most Basic ASGS Shell Install

on:
push:
branches:
- ci-test
pull_request:
branches:
- ci-test

jobs:
run-bash-script:
runs-on: ubuntu-22.04

steps:
# Step 1: Check out the repository code
- name: Checkout repository
uses: actions/checkout@v3

# Step 2: Run the bash script
- name: Run install script
run: |
chmod +x ./ci/01-install-shell-only.sh # Make the script executable
./ci/01-install-shell-only.sh # Run the script
17 changes: 17 additions & 0 deletions ci/01-install-shell-only.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

./init-asgs.sh -b -x "--update-shell"

if [ ! -e ./asgsh ]; then
echo "01 not ok - can't find ./asgsh" >&2
exit 1
fi

echo "01 ok - found ./asgsh"

if [ ! -e ./update-asgs ]; then
echo "02 not ok - can't find ./update-asgs" >&2
exit 1
fi

echo "02 ok - found ./update-asgs"

0 comments on commit 37e22e7

Please sign in to comment.