-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 982 Bytes
/
build.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
name: Build
on:
push:
branches: [ '*']
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting with SonarCloud
fetch-depth: 0
- uses: actions/setup-node@v3
with:
# Keep in sync with Dockerfile and createBinaries.js
node-version: '14'
- run: yarn install
- run: yarn test
- uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- run: docker build --no-cache -t dsdl .
# Do some basic sanity checks with the container
- run: echo $(docker run --rm dsdl audio --user someuser -o /dsdl http://diskstation/photo) | grep Password