Skip to content
Closed
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
4 changes: 2 additions & 2 deletions .github/actions/bundle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:slim
FROM node:12-slim

COPY index.js .
COPY package.json .
COPY package-lock.json .

RUN npm install

ENTRYPOINT ["node", "/index.js"];
ENTRYPOINT ["node", "/index.js"]
4 changes: 2 additions & 2 deletions .github/actions/commenter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:slim
FROM node:12-slim

COPY index.js .
COPY package.json .
COPY package-lock.json .

RUN npm install

ENTRYPOINT ["node", "/index.js"];
ENTRYPOINT ["node", "/index.js"]
4 changes: 2 additions & 2 deletions .github/actions/coverage-report/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:slim
FROM node:12-slim

COPY index.js .
COPY package.json .
COPY package-lock.json .

RUN npm install

ENTRYPOINT ["node", "/index.js"];
ENTRYPOINT ["node", "/index.js"]
24 changes: 12 additions & 12 deletions .github/workflows/node-pr-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Build and Test
defaults:
run:
working-directory: ui
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12.x
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Caluclate bundle size
- name: Calculate bundle size
id: bundle
uses: ./.github/actions/bundle
- name: Test
Expand All @@ -40,16 +40,16 @@ jobs:
TEST_COVERAGE: ${{ steps.coverage.outputs.test_coverage }}

lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: ESLint
defaults:
run:
working-directory: ui

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12.x
- name: Install Dependencies
Expand All @@ -58,23 +58,23 @@ jobs:
run: npm run lint

e2e-tests:
runs-on: ubuntu-latest # or macos-latest, windows-latest
runs-on: ubuntu-22.04 # or macos-latest, windows-latest
defaults:
run:
working-directory: ui
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Increase file watcher limit
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12.x
- uses: microsoft/playwright-github-action@v1
- uses: microsoft/playwright-github-action@v1.5.6
- name: Install dependencies
run: npm ci
- name: run tests
run: npm run test:e2e
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: failure()
with:
name: failures
Expand Down
5 changes: 4 additions & 1 deletion ui/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"babelOptions": {
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
},
"env": {
Expand All @@ -28,7 +31,7 @@
},
"import/resolver": "webpack"
},
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"rules": {
"prettier/prettier": "error",
"strict": [2, "global"],
Expand Down
Loading
Loading