-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (68 loc) · 2.08 KB
/
test-dev-scripts.yaml
File metadata and controls
82 lines (68 loc) · 2.08 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Test Development Scripts
on:
pull_request:
paths:
- scripts/**
workflow_dispatch:
jobs:
test-dev-scripts:
name: Test Development Scripts
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
name: linux
shell: bash
script: ./scripts/dev.sh
- os: windows-latest
name: windows-powershell
shell: pwsh
script: .\scripts\dev.ps1
- os: windows-latest
name: windows-cmd
shell: cmd
script: scripts\dev.cmd
- os: macos-latest
name: macos
shell: bash
script: ./scripts/dev.sh
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21.3"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install tmux (Linux/macOS)
if: matrix.os != 'windows-latest'
run: |
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
sudo apt-get update && sudo apt-get install -y tmux
elif [ "${{ matrix.os }}" = "macos-latest" ]; then
brew install tmux
fi
shell: bash
- name: Make script executable (Unix)
if: matrix.os != 'windows-latest'
run: chmod +x scripts/dev.sh
shell: bash
- name: Test script help/usage
run: ${{ matrix.script }}
shell: ${{ matrix.shell }}
continue-on-error: true
- name: Test dependency check
run: ${{ matrix.script }} setup
shell: ${{ matrix.shell }}
- name: Test build command
run: ${{ matrix.script }} build
shell: ${{ matrix.shell }}
continue-on-error: true
- name: Test backend build (quick test)
run: ${{ matrix.script }} test
shell: ${{ matrix.shell }}
continue-on-error: true