-
Notifications
You must be signed in to change notification settings - Fork 7
91 lines (89 loc) · 2.26 KB
/
ci.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
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
83
84
85
86
87
88
89
90
91
name: CI
on:
push:
branches: [master]
pull_request: ~
workflow_dispatch: ~
jobs:
shell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run sh-checker
uses: luizm/action-sh-checker@master
env:
SHFMT_OPTS: -i 2 -d
SHELLCHECK_OPTS: -e SC2148,SC2034
csharp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install C# dependencies
run: make install-csharp
- name: Lint project
run: make lint-csharp
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23
# install must occur in the same step as the linter to run properly on CI
- name: Lint project
run: make install-go lint-go
java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Java dependencies
run: make install-java
- name: Lint project
run: make lint-java
node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: make install-node
- name: Lint project
run: make lint-node
- name: Check formatting
run: make format-node-check
php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: make install-php
- name: Lint project
run: make lint-php
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python dependencies
run: make install-python
- name: Lint project
run: make lint-python
- name: Check formatting
run: make format-python-check
ruby:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
rubygems: '3.0.0'
bundler-cache: true
- name: Install Ruby dependencies
run: make install-ruby
- name: Lint project
run: make lint-ruby
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for current dirs in docs
run: ./test/ensure-current-dirs-exist.sh