-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.03 KB
/
workflow.yaml
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
name: Run Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04 ]
steps:
- name: Checkout Code
uses: actions/checkout@v4
# Optional: Install Docker (if needed)
- name: Install Docker
run: |
sudo apt-get update
sudo apt-get install -y docker.io
# Optional: Install Node.js dependencies if using npm or Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install Dependencies
run: |
npm install
- name: Run Tests
run: |
./run_tests.sh
shell-checks:
name: ShellCheck
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -e SC1090 -e SC2119 -e SC1091