-
Notifications
You must be signed in to change notification settings - Fork 20
44 lines (39 loc) · 959 Bytes
/
Copy pathtests.yml
File metadata and controls
44 lines (39 loc) · 959 Bytes
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
name: 'Test Suite'
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to run tests on'
required: true
default: 'master'
jobs:
tests:
name: "Test ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
# Checkout the requested branch
- name: checkout
uses: actions/checkout@v4
with:
ref: '${{ github.event.inputs.branch }}'
fetch-depth: 0
# Fix timestamps
- name: restore timestamps
uses: ./
# Check timestamps
- name: validate
shell: bash
run: |
e=1568920506
if [[ "$OSTYPE" == *'darwin'* ]]; then
t=$(stat -f %m LICENSE)
else
t=$(stat --format="%Y" LICENSE)
fi
if [[ $t -ne $e ]]; then
echo "timestamp for LICENSE was '$t'; expected 1568919521"
exit 1
fi