-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (48 loc) · 1.48 KB
/
runtime-test-cron.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Cron job to check latest runtime for testing
on:
workflow_dispatch:
inputs:
feed:
description: 'Feed type'
required: true
default: 'unstable'
type: choice
options:
- lts
- stable
- beta
- unstable
schedule:
# At minute 30 past hour 14 and 22 UTC on every day-of-week from Monday through Friday.
- cron: '30 14,22 * * 1-5'
env:
FEED: ${{ github.event.inputs.feed || 'unstable' }}
permissions:
contents: write
jobs:
check_latest_runtime:
name: Check latest runtime
runs-on: ubuntu-20.04
outputs:
runtime: ${{ steps.sync.outputs.runtime }}
steps:
- uses: actions/checkout@v3
with:
ref: runtime_test_cron
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: echo "//registry.npmjs.org/:_authToken=${{secrets.BSCOTCH_NPM_READ_ANY}}" > .npmrc
- run: npm install @bscotch/runtime-test-manager
- id: sync
run: npx rtm sync -f ${{ env.FEED}}
order_test:
if: ${{ needs.check_latest_runtime.outputs.runtime }}
needs: check_latest_runtime
name: Order test builds
uses: ./.github/workflows/build-and-test.yml
with:
runtime: ${{ needs.check_latest_runtime.outputs.runtime }}
secrets: inherit