-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.32 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2022-2023 the Lactoserv Authors (Dan Bornstein et alia).
# SPDX-License-Identifier: Apache-2.0
name: Lint / Build / Test
# Controls when the workflow will run.
on:
# Triggers the workflow on push or PR events for the branch `main`.
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:
# Workflow. Jobs run in parallel by default, but that is moot here: there's only
# one job.
jobs:
# Build the project!
build:
runs-on: ubuntu-latest
steps:
- name: Get Node.
uses: actions/setup-node@v3
with:
node-version: '18.x'
# Note: Checks out into `$GITHUB_WORKSPACE`, which is also the `$CWD`.
- name: Clone repo.
uses: actions/checkout@v4
- name: Run the linter.
run: ./scripts/ubik lint
- name: Actually build.
run: ./scripts/ubik build --make-distro
- name: Run the unit tests.
run: ./scripts/ubik run-tests
- name: Ensure the cert creator still works.
run: ./scripts/ubik make-localhost-cert
#- name: Run a multi-line script.
# run: |
# echo THIS IS
# echo A TEST.
# echo "Workspace: ${GITHUB_WORKSPACE}"
# ls -alF "${GITHUB_WORKSPACE}"
# pwd