-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
53 lines (45 loc) · 1.29 KB
/
action.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
name: 'Architect Build'
description: 'Builds and Architect app'
inputs:
use_lock_file:
required: false
default: true
node-version:
required: false
default: lts/*
runs:
using: "composite"
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Env
shell: bash
run: |
echo "Event name: ${{ github.event_name }}"
echo "Git ref: ${{ github.ref }}"
echo "GH actor: ${{ github.actor }}"
echo "SHA: ${{ github.sha }}"
VER=`node --version`; echo "Node ver: $VER"
VER=`npm --version`; echo "npm ver: $VER"
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
useLockFile: ${{ inputs.use_lock_file }}
- name: Install Architect
shell: bash
run: npm install @architect/architect
- name: Vendor dist files
shell: bash
run: npm run dist --if-present
- name: Hydrate
shell: bash
run: npx arc hydrate
- name: Test
shell: bash
run: npm test