From b46322e57a5433d9000708d599a767f2d3c00b9e Mon Sep 17 00:00:00 2001 From: Theo Beers <32523293+theodore-s-beers@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:02:20 +0100 Subject: [PATCH] Add test for frontend freshness --- .github/workflows/frontend_freshness.yml | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/frontend_freshness.yml diff --git a/.github/workflows/frontend_freshness.yml b/.github/workflows/frontend_freshness.yml new file mode 100644 index 000000000..34f2d05ef --- /dev/null +++ b/.github/workflows/frontend_freshness.yml @@ -0,0 +1,29 @@ +name: Ensure website is up to date + +on: + push: + branches: + - frontend + schedule: + - cron: "9 6 * * 3" + workflow_dispatch: + +jobs: + test: + name: Verify data freshness + + runs-on: ubuntu-latest + + steps: + - name: Check out repo + uses: actions/checkout@v4 + with: + ref: frontend + + - name: Set up Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Run test + run: deno test --allow-read deno/date_test.ts