chore: test update omnibus-rssd-nginx.dockerfile #597
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: surveilr End-to-End Quality Assurance Patterns | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
EGET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
architecture: [x64] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v2.0.4 | |
- name: Check Deno Version | |
run: | | |
echo "Checking Deno version..." | |
deno --version | |
- name: Install eget | |
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'debian') || matrix.os == 'macos-latest' | |
run: | | |
echo "Installing eget..." | |
curl -sSL https://zyedidia.github.io/eget.sh | bash | |
sudo mv ./eget /usr/local/bin/ | |
- name: Install or Upgrade surveilr | |
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'debian') || matrix.os == 'macos-latest' | |
run: | | |
if command -v surveilr &>/dev/null; then | |
echo "surveilr is installed. Upgrading..." | |
surveilr upgrade | |
else | |
echo "surveilr not found. Installing..." | |
eget opsfolio/releases.opsfolio.com | |
sudo mv surveilr /usr/local/bin/ | |
surveilr --version | |
fi | |
- name: Run Deno Tests | |
run: | | |
deno test -A ./lib/assurance/admin_test.ts \ | |
./lib/assurance/functions_test.ts \ | |
./lib/assurance/imap_test.ts \ | |
./lib/assurance/orchestration_test.ts \ | |
./lib/assurance/opendal_integration_test.ts \ | |
./lib/assurance/dynamic_extensions_test.ts \ | |
./lib/assurance/doctor_test.ts | |
- name: Install surveilr for Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
echo "Installing surveilr for Windows..." | |
curl -LO https://opsfolio/releases.opsfolio.com/surveilr.exe | |
move surveilr.exe C:\\Windows\\System32\\surveilr.exe | |
surveilr --version | |
- name: Run Deno Tests on Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
deno test -A ./lib/assurance/admin_test.ts \ | |
./lib/assurance/functions_test.ts \ | |
./lib/assurance/imap_test.ts \ | |
./lib/assurance/orchestration_test.ts \ | |
./lib/assurance/opendal_integration_test.ts \ | |
./lib/assurance/dynamic_extensions_test.ts \ | |
./lib/assurance/doctor_test.ts |