-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 'Setup' | ||
description: 'Setup node, install deps, compile' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: npm ci | ||
|
||
- name: Build project | ||
shell: bash | ||
run: npm run compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ jobs: | |
linkChecker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].2 | ||
|
||
- name: Link Checker | ||
uses: lycheeverse/lychee-action@v1.8.0 | ||
uses: lycheeverse/lychee-action@v2.1.0 | ||
with: | ||
fail: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,12 @@ jobs: | |
permissions: read-all | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
- run: npm ci | ||
uses: actions/[email protected] | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- run: npm run version:check | ||
- name: Lint code | ||
run: npm run lint | ||
- name: Lint docs | ||
run: npm run lint:markdown | ||
- name: Transpile code | ||
run: npm run compile | ||
- name: Unit test | ||
|
@@ -36,12 +31,8 @@ jobs: | |
browser: [headlessChrome, headlessFirefox] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run compile | ||
uses: actions/[email protected] | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- name: Local integration tests using ${{ matrix.browser }} | ||
run: npm run test:integration:local:${{ matrix.browser }}:_execute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
- run: npm ci | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- run: npm run version:check | ||
- name: Lint code | ||
run: npm run lint | ||
|
@@ -47,13 +44,11 @@ jobs: | |
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }} | ||
tunnelName: ${{ secrets.SAUCE_TUNNEL_ID }} | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run compile | ||
uses: actions/[email protected] | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Add to hosts file | ||
run: echo "127.0.0.1 local.test" | sudo tee -a /etc/hosts | ||
- name: Run integration tests in Saucelabs | ||
|
@@ -69,15 +64,14 @@ jobs: | |
browser: [headlessChrome, headlessFirefox] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run compile | ||
uses: actions/[email protected] | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Local integration tests using ${{ matrix.browser }} | ||
run: npm run test:integration:local:${{ matrix.browser }}:_execute | ||
|
||
- name: Upload test logs | ||
uses: actions/[email protected] | ||
if: ${{ failure() }} | ||
|