-
Notifications
You must be signed in to change notification settings - Fork 1.1k
52 lines (43 loc) · 1.25 KB
/
test-game.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
name: test-game
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'games/**.js'
permissions:
contents: read
pull-requests: read
jobs:
test-game:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log Environment Information
run: |
echo "Run started on: $(date)"
echo "Runner OS: ${{ runner.os }}"
echo "Workflow Ref: ${{ github.ref }}"
echo "Base Ref: ${{ github.base_ref }}"
echo "Head Ref: ${{ github.head_ref }}"
echo "Event Name: ${{ github.event_name }}"
echo "Repository: ${{ github.repository }}"
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
with:
files: |
games/**.js
- name: Log Changed Files
run: |
echo "Changed Files:"
echo "${{ steps.changed-files.outputs.all_changed_files }}"
- name: Setup Deno
uses: denoland/[email protected]
- name: Check Games
run: deno run --allow-read tests/sprigfuzzy_workflow.js ${{ steps.changed-files.outputs.all_changed_files }}