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 61dbb60
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/01-basic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run Bash Script on ci-test Branch

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

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

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Run install script
run: |
chmod +x ./ci/01-install-shell-only.sh
./ci/01-install-shell-only.sh
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 61dbb60

Please sign in to comment.