-
-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (34 loc) · 898 Bytes
/
main.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
name: CI
on: [push, pull_request]
jobs:
build:
name: Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Install libscrypt
run: |
sudo apt-get install libscrypt0
sudo apt-get install libscrypt-dev
- name: Lint JavaScript
run: |
sudo npm install -g jshint
jshint --exclude-path public/scripts/.jshintignore public/scripts
- name: Install D
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-2.096.1
- name: Build
run: dub build
- name: Style checks
run: |
dub fetch dscanner
dub run dscanner -- -S source/
- name: Unit Tests
run: dub test