78 lines (63 loc) · 2.16 KB
/
falkor-auth-server-manual.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Falkor CI - Manual
on:
workflow_dispatch:
inputs:
cli:
description: Custom CLI arguments for build
required: false
default: --release
jobs:
CIm:
name: Manual CI Suite
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: GitHub Checkout
uses: actions/checkout@v3
- name: Use Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# NOTE: since the monorepo setup separate projects do not use npm cache
# cache: npm
- name: Install Npm Dependencies
run: |-
npm install --ignore-scripts --fund false
- name: Lint Project
run: |-
npm run lint
- name: Bundle Custom Project
run: |-
npx --no-install falkor-bundler ${{ github.event.inputs.cli }} --input src/index.js
npx --no-install falkor-bundler ${{ github.event.inputs.cli }} --input src/passwd.js
npx --no-install falkor-bundler ${{ github.event.inputs.cli }} --input src/util/crypto.js --out .dist/util
npx --no-install falkor-bundler ${{ github.event.inputs.cli }} --input src/cli/version.js --out .dist/cli
- name: Use Pandoc v3.1
if: ${{ matrix.os != 'windows-latest' }}
uses: r-lib/actions/setup-pandoc@v1
with:
pandoc-version: "3.1"
- name: Build Manual
if: ${{ matrix.os != 'windows-latest' }}
run: |-
npm run man
- name: Install Project Globally
run: |-
npm install --global --fund false .
- name: Get Executable Version
run: |-
falkor-auth-server --version
falkor-auth-passwd --version
- name: Get Executable Hep
run: |-
falkor-auth-server --help
falkor-auth-passwd --help
- name: Get Executable Manual
if: ${{ matrix.os != 'windows-latest' }}
run: |-
man falkor-auth-server | col -bx
man falkor-auth-passwd | col -bx