Compare commits

...

17 Commits

Author SHA1 Message Date
unlikelyzero
521202f492 flip playwright install 2022-03-30 16:52:46 -07:00
unlikelyzero
6955801834 Merge branch 'fix-github-actions' of https://github.com/nasa/openmct into fix-github-actions 2022-03-30 16:51:42 -07:00
Joe Pea
872d0d2e06 Merge branch 'master' into fix-github-actions 2022-03-30 15:19:21 -07:00
John Hill
f7effe8964 restrict to label events 2022-03-30 13:33:47 -07:00
John Hill
c94daac241 Merge branch 'master' into fix-github-actions 2022-03-30 13:28:31 -07:00
unlikelyzero
35e29e73ed add comment 2022-03-30 12:33:55 -07:00
unlikelyzero
ad44cd8062 pin versions again 2022-03-30 12:28:25 -07:00
unlikelyzero
ae553e2b82 reset based on doc 2022-03-30 12:10:36 -07:00
unlikelyzero
bc6856f0f1 fix build error 2022-03-30 12:08:04 -07:00
unlikelyzero
8eba1a83a3 Merge branch 'fix-github-actions' of https://github.com/nasa/openmct into fix-github-actions 2022-03-30 12:06:16 -07:00
unlikelyzero
1b187241dc add triggers for opened PRs 2022-03-30 12:06:10 -07:00
John Hill
3f6152c6ff Merge branch 'master' into fix-github-actions 2022-03-30 11:44:16 -07:00
unlikelyzero
4e32637469 check latest 2022-03-30 11:37:47 -07:00
unlikelyzero
722690ca15 Add node testing and explicit ubuntu version 2022-03-30 11:37:38 -07:00
unlikelyzero
eb7da39ceb add caching and check latest 2022-03-30 11:37:24 -07:00
unlikelyzero
8896a0dcfa remove broken functionaliyt 2022-03-30 11:36:47 -07:00
unlikelyzero
3de70079dd remove unused gha 2022-03-30 11:36:15 -07:00
6 changed files with 40 additions and 29 deletions

View File

@@ -8,7 +8,7 @@ on:
jobs:
e2e-full:
if: ${{ github.event.label.name == 'pr:e2e' }}
if: ${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'pr:e2e' }} || ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -30,8 +30,18 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npx playwright@1.19.2 install
check-latest: true
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
- run: npm install
- run: npx playwright install
- run: npm run test:e2e:full
- name: Archive test results
uses: actions/upload-artifact@v2

View File

@@ -10,15 +10,25 @@ on:
jobs:
e2e-visual:
if: ${{ github.event.label.name == 'pr:visual' }} || ${{ github.event.workflow_dispatch }} || ${{ github.event.schedule }}
if: ${{ github.event.label.name == 'pr:visual' }} || ${{ github.event.workflow_dispatch }} || ${{ github.event.schedule }} || ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npx playwright@1.19.2 install
check-latest: true
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
- run: npm install
- run: npx playwright install
- name: Run the e2e visual tests
run: npm run test:e2e:visual
env:

View File

@@ -1,21 +0,0 @@
name: "e2e"
on:
workflow_dispatch:
inputs:
version:
description: 'Which branch do you want to test?' # Limited to branch for now
required: false
default: 'master'
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.version }}
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm install
- name: Run the e2e tests
run: npm run test:e2e:ci

View File

@@ -6,9 +6,6 @@ on:
description: 'Which branch do you want to test?' # Limited to branch for now
required: false
default: 'master'
pull_request:
types:
- labeled
jobs:
lighthouse-pr:
if: ${{ github.event.label.name == 'pr:lighthouse' }}
@@ -56,6 +53,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '16'
check-latest: true
- name: Cache node modules
uses: actions/cache@v2
env:
@@ -82,6 +80,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '16'
check-latest: true
- name: Cache node modules
uses: actions/cache@v3
env:

View File

@@ -27,6 +27,7 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
check-latest: true
- run: npm install
- run: npm publish --access public --tag unstable
env:

View File

@@ -12,12 +12,14 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-20.04 #MMOC Ubuntu version
- macos-latest
- macos-10.15
- windows-latest
node_version:
- 14
- 16
- 17
architecture:
- x64
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
@@ -28,6 +30,16 @@ jobs:
with:
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
check-latest: true
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-${{ matrix.node_version }}--build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node_version }}--build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
- run: npm install
- run: npm test
- run: npm run lint -- --quiet