Skip to content

Commit 5ecf00f

Browse files
author
Jordan Dachroeden
committed
clean up actions
1 parent 9fa945c commit 5ecf00f

4 files changed

Lines changed: 240 additions & 358 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -14,51 +14,8 @@ jobs:
1414
name: Run Test Coverage
1515
uses: ./.github/workflows/run-unit-tests.yml
1616
run-branch-unit-tests-and-coverage:
17-
timeout-minutes: 10
18-
runs-on: ubuntu-22.04
19-
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v3
22-
with:
23-
fetch-depth: 0
24-
ref: ${{ github.event.pull_request.head.sha }}
25-
- run: |
26-
git fetch --no-tags --depth=1 origin master
27-
git checkout -b master origin/master
28-
git checkout ${{ github.event.pull_request.head.sha }}
29-
- name: Setup Node.js environment
30-
uses: actions/setup-node@v4
31-
with:
32-
node-version: 22
33-
- name: npm install
34-
env:
35-
NODE_OPTIONS: "--max_old_space_size=8192"
36-
run: npm install --legacy-peer-deps
37-
- name: run branch tests with coverage
38-
env:
39-
NODE_OPTIONS: "--max_old_space_size=8192"
40-
run: npm run test:branch
17+
name: Run Branch Test Coverage
18+
uses: ./.github/workflows/run-branch-unit-tests.yml
4119
# run-cypress-tests:
42-
# timeout-minutes: 15
43-
# runs-on: ubuntu-22.04
44-
# steps:
45-
# - name: Checkout
46-
# uses: actions/checkout@v3
47-
# - name: Setup Node.js environment
48-
# uses: actions/setup-node@v3.8.1
49-
# with:
50-
# node-version: 20
51-
# - name: Cypress install
52-
# env:
53-
# NODE_OPTIONS: "--max_old_space_size=8192"
54-
# run: npm install --legacy-peer-deps
55-
# - name: Cypress run
56-
# uses: cypress-io/github-action@v5
57-
# env:
58-
# NODE_OPTIONS: "--max_old_space_size=8192"
59-
# GITHUB_TOKEN: ${{ github.token }}
60-
# with:
61-
# install: false
62-
# build: npm run build
63-
# start: npm run serve
64-
# broswer: chrome
20+
# name: Run Cypress Tests
21+
# uses: ./.github/workflows/run-cypress-tests.yml
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run Branch Unit Tests
2+
on:
3+
workflow_call:
4+
jobs:
5+
Run:
6+
timeout-minutes: 10
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
ref: ${{ github.event.pull_request.head.sha }}
14+
- run: |
15+
git fetch --no-tags --depth=10 origin master
16+
git checkout -b master origin/master
17+
git checkout ${{ github.event.pull_request.head.sha }}
18+
- name: Setup Node.js environment
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
- name: npm install
23+
env:
24+
NODE_OPTIONS: "--max_old_space_size=8192"
25+
run: npm install --legacy-peer-deps
26+
- name: run branch tests with coverage
27+
env:
28+
NODE_OPTIONS: "--max_old_space_size=8192"
29+
run: npm run test:branch
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run Cypress Tests
2+
on:
3+
workflow_call:
4+
jobs:
5+
Run:
6+
timeout-minutes: 15
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
- name: Setup Node.js environment
12+
uses: actions/setup-node@v3.8.1
13+
with:
14+
node-version: 20
15+
- name: Cypress install
16+
env:
17+
NODE_OPTIONS: "--max_old_space_size=8192"
18+
run: npm install --legacy-peer-deps
19+
- name: Cypress run
20+
uses: cypress-io/github-action@v5
21+
env:
22+
NODE_OPTIONS: "--max_old_space_size=8192"
23+
GITHUB_TOKEN: ${{ github.token }}
24+
with:
25+
install: false
26+
build: npm run build
27+
start: npm run serve
28+
broswer: chrome

0 commit comments

Comments
 (0)