-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.48 KB
/
Copy pathcheck.yml
File metadata and controls
54 lines (49 loc) · 1.48 KB
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
53
54
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
permissions:
id-token: write
contents: read
checks: write
pages: write
env:
RUST_BACKTRACE: 1
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: DeterminateSystems/nix-installer-action@main
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run & Check Examples
run: |
set -e
# Check for script existence and executability
echo "Checking script availability..."
for script in test-examples.sh check-examples.sh lint-examples.sh; do
if [ -f "$script" ]; then
echo "✓ $script exists"
if [ -x "$script" ]; then
echo "✓ $script is executable"
else
echo "! $script is not executable, making it executable"
chmod +x "$script"
fi
else
echo "✗ $script does not exist"
exit 1
fi
done
# Run scripts with explicit logging
echo "Running test-examples.sh..."
bash test-examples.sh
echo "Running check-examples.sh..."
bash check-examples.sh
echo "Running lint-examples.sh..."
bash lint-examples.sh
echo "All scripts completed successfully"