One test is better than zero I suppose :D #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
paths-ignore: | |
- '**/*.md' | |
schedule: | |
# UTC | |
- cron: '15 12 * * *' | |
jobs: | |
make: | |
permissions: | |
contents: read | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# TODO: someone with more windows chops please add windows test support | |
# os: [windows-latest, ubuntu-latest, macos-latest] | |
# TODO: figure out how to install docker in a mac runner :facepalm: | |
# os: [ubuntu-latest, macos-latest] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set make and secrets for Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
choco install mingw -y | |
echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin" >> $GITHUB_PATH | |
cp sample.env .env <-- do not know what windows cp. COPY? | |
C:\Program Files\Git\bin\bash.exe ./build/scripts/check-secrets.sh yes | |
- name: init secrets | |
if: matrix.os != 'windows-latest' | |
run: |- | |
cp sample.env .env | |
./build/scripts/check-secrets.sh yes | |
shell: bash | |
- name: make starter | |
run: make starter | |
shell: bash | |
- name: check online | |
# TODO: what's a windows curl? | |
if: matrix.os != 'windows-latest' | |
run: |- | |
STATUS=$(curl -k \ | |
-w '%{http_code}' -o /dev/null \ | |
https://islandora.traefik.me/) | |
echo "Site check returned ${STATUS}" | |
if [ ${STATUS} -ne 200 ]; then | |
echo "Failed to bring up site" | |
exit 1 | |
fi | |
- name: make build | |
run: make build | |
shell: bash | |
- name: make production | |
run: make production | |
shell: bash | |
- name: check online | |
# TODO: what's a windows curl? | |
if: matrix.os != 'windows-latest' | |
run: |- | |
STATUS=$(curl -k \ | |
-w '%{http_code}' -o /dev/null \ | |
https://islandora.traefik.me/) | |
echo "Site check returned ${STATUS}" | |
if [ ${STATUS} -ne 200 ]; then | |
echo "Failed to bring up site" | |
exit 1 | |
fi |