-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (41 loc) · 1.34 KB
/
Copy pathci.yml
File metadata and controls
52 lines (41 loc) · 1.34 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
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
name: test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Configure git identity
run: |
git config --global user.name "devloop-ci"
git config --global user.email "ci@devloop.sh"
git config --global init.defaultBranch main
- name: Syntax check
run: bash -n devloop scripts/install.sh scripts/release.sh scripts/skill_helpers.sh scripts/install.remote.sh scripts/devloop_test.sh
- name: Test suite
run: bash scripts/devloop_test.sh
- name: Version and help
run: |
./devloop --version
./devloop --help
- name: Release dry run
run: ./scripts/release.sh patch --dry-run
lint:
name: shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Ensure shellcheck
run: command -v shellcheck >/dev/null 2>&1 || { sudo apt-get update && sudo apt-get install -y shellcheck; }
- name: Run shellcheck
run: shellcheck devloop scripts/install.sh scripts/skill_helpers.sh scripts/release.sh scripts/install.remote.sh scripts/devloop_test.sh