forked from uhudo/igoprotect
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (32 loc) · 998 Bytes
/
frontend-ci.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
name: Validate frontend
on:
workflow_call:
jobs:
validate:
runs-on: 'ubuntu-latest'
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Install algokit
run: pipx install algokit
- name: Install dependencies
run: algokit project bootstrap all --project-name 'frontend'
- name: Run linters
run: algokit project run lint --project-name 'frontend'
- name: Run unit tests
run: algokit project run test --project-name 'frontend'
- name: Build
run: algokit project run build --project-name 'frontend'