forked from gondwanasoft/wff-build-script
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.15 KB
/
tests.yaml
File metadata and controls
43 lines (40 loc) · 1.15 KB
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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Build and test clockwork
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [23.x]
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build --if-present
- name: Set CLOCKWORK_HOME
run: echo "CLOCKWORK_HOME=${{ github.workspace }}" >> $GITHUB_ENV
- name: Check clockwork version
run: ./clockwork-linux --version
- name: Run clockwork init
run: ./clockwork-linux init -y
- name: Install a sample package
run: ./clockwork-linux add example-ui-pkg
- name: Verify package is installed
run: |
if [ ! -d "packages/example-ui-pkg" ]; then
echo "Package was not installed."
exit 1
fi