Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/2wr-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
paths:
- '2wr-app/**'
- '.github/workflows/2wr-app.yaml'
branches: [ master ]
branches: [ main ]
pull_request:
paths:
- '2wr-app/**'
- '.github/workflows/2wr-app.yaml'
branches: [ master ]
branches: [ main ]
workflow_dispatch:

jobs:
Expand All @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -30,6 +30,20 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: ./2wr-app
- run: npx playwright install
working-directory: ./2wr-app
- name: Write sample env file for e2e tests
run: 'cp ./2wr-app/.env-sample ./2wr-app/.env'
- run: npm run e2etest
working-directory: ./2wr-app
- name: Upload e2e Test Results
uses: actions/upload-artifact@v2
if: failure()
with:
name: e2e-test-results
path: ./2wr-app/test-results
- name: Clear sample env file from e2e tests
run: 'rm ./2wr-app/.env'
- name: Write env file
run: 'echo "$DEV_ENV" > ./2wr-app/.env'
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions 2wr-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ node_modules
.env.local
.env.*.local

#test results
/test-results

# Log files
npm-debug.log*
yarn-debug.log*
Expand Down
2 changes: 1 addition & 1 deletion 2wr-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ In VSCode, you can get a walk-through of the code via the [CodeTour](https://mar

## Project Prerequisites

1. Node.js 14.17.6 LTS
1. Node.js 16.x.x LTS

## Project setup

Expand Down
3 changes: 3 additions & 0 deletions 2wr-app/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ const config = {
port: 8080,
timeout: 120 * 1000,
},
use: {
screenshot: 'only-on-failure',
}
};
module.exports = config;
2 changes: 1 addition & 1 deletion 2wr-app/tests/welcome.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.describe('Welcome page accessibility test', () => {
await injectAxe(page);
});

test('Check Accessability', async () => {
test('Check Accessibility', async () => {
await checkA11y(page, null, {
axeOptions: {

Expand Down