From 1bbaf1c0be8305a58722850c6eb604854369c73b Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Thu, 30 May 2024 09:43:42 -0400 Subject: [PATCH] Reuse test workflow --- .github/workflows/test.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 538f0b1a7..f930d1a94 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,15 +1,21 @@ name: Test on: pull_request: - push: { branches: main } + push: {branches: main} + schedule: [{cron: '0 0 10 * *'}] # monthly https://crontab.guru/#0_0_10_*_* + workflow_dispatch: + +permissions: read-all jobs: test: - runs-on: ${{ matrix.os }}-latest - strategy: { matrix: { os: [ubuntu, macOS] }} - steps: - - uses: actions/checkout@v4 - - run: npm cit + uses: nodenv/.github/.github/workflows/test.yml@v4 + permissions: + contents: read + packages: read + id-token: write + security-events: write + statuses: write lts: runs-on: ubuntu-latest