-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (40 loc) · 1.06 KB
/
template-test-build.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
name: "Test Build"
on:
workflow_call:
permissions:
id-token: write
contents: read
defaults:
run:
shell: pwsh
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- name: Test Svelte build
run: |
cd ui
npm i
npm run build
- name: Test Firebase API build
run: |
cd api/functions
npm i
npm run lint
- name: Install Latest Docker
run: |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
- name: Check Docker Version
run: docker --version
- name: Test Docker build
run: |
cd docker
docker build -t sswconsulting/codeauditor .