Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
df58f8e9
Commit
df58f8e9
authored
Mar 09, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all checks workflow
parent
80ef2b1c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
71 deletions
+102
-71
checks.yml
.github/workflows/checks.yml
+102
-0
linters.yml
.github/workflows/linters.yml
+0
-23
unit-tests.yml
.github/workflows/unit-tests.yml
+0
-48
No files found.
.github/workflows/checks.yml
0 → 100644
View file @
df58f8e9
name
:
Checks
on
:
pull_request
:
push
:
branches
:
-
main
jobs
:
lint
:
name
:
ESLint
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout repo
uses
:
actions/checkout@v3
-
name
:
Setup node
uses
:
actions/setup-node@v3
with
:
node-version
:
18
cache
:
'
yarn'
-
name
:
Install dependencies
uses
:
bahmutov/npm-install@v1
-
name
:
Run ESLint
run
:
yarn lint:eslint
type_check
:
name
:
TypeScript
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout repo
uses
:
actions/checkout@v3
-
name
:
Setup node
uses
:
actions/setup-node@v3
with
:
node-version
:
18
cache
:
'
yarn'
-
name
:
Install dependencies
uses
:
bahmutov/npm-install@v1
-
name
:
Compile TypeScript
run
:
yarn lint:tsc
jest_tests
:
name
:
Run unit tests with Jest
needs
:
[
lint
,
type_check
]
runs-on
:
ubuntu-latest
if
:
${{
false
}}
# disable since there are no jest test yet
steps
:
-
name
:
Checkout repo
uses
:
actions/checkout@v3
-
name
:
Setup node
uses
:
actions/setup-node@v3
with
:
node-version
:
18
cache
:
'
yarn'
-
name
:
Install dependencies
uses
:
bahmutov/npm-install@v1
-
name
:
Run Jest
run
:
yarn test:jest
pw_tests
:
name
:
Run components visual tests with PlayWright
needs
:
[
lint
,
type_check
]
runs-on
:
ubuntu-latest
container
:
image
:
mcr.microsoft.com/playwright:v1.28.0-focal
steps
:
-
name
:
Install git-lfs
run
:
apt-get update && apt-get install git-lfs
-
name
:
Checkout repo
uses
:
actions/checkout@v3
with
:
lfs
:
'
true'
-
name
:
Setup node
uses
:
actions/setup-node@v3
with
:
node-version
:
18
cache
:
'
yarn'
-
name
:
Install dependencies
uses
:
bahmutov/npm-install@v1
-
name
:
Run PlayWright
run
:
HOME=/root yarn test:pw
-
name
:
Upload test results
if
:
always()
uses
:
actions/upload-artifact@v2
with
:
name
:
playwright-report
path
:
playwright-report
retention-days
:
10
\ No newline at end of file
.github/workflows/linters.yml
deleted
100644 → 0
View file @
80ef2b1c
name
:
Linters
on
:
pull_request
:
push
:
branches
:
-
main
jobs
:
check_code
:
name
:
Run code checks
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-node@v3
with
:
node-version
:
18
cache
:
'
yarn'
-
name
:
Install dependencies
run
:
yarn install --frozen-lockfile
-
name
:
Run ESLint
run
:
yarn lint:eslint
-
name
:
Compile TypeScript
run
:
yarn lint:tsc
\ No newline at end of file
.github/workflows/unit-tests.yml
deleted
100644 → 0
View file @
80ef2b1c
name
:
Unit tests
on
:
pull_request
:
push
:
branches
:
-
main
jobs
:
# jest_tests:
# name: Run tests with Jest
# runs-on: ubuntu-latest
# if: ${{ false }} # disable since there are no jest test yet
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'yarn'
# - name: Install dependencies
# run: yarn install --frozen-lockfile
# - name: Run tests
# run: yarn test:jest
pw_tests
:
name
:
Run components visual tests with PlayWright
runs-on
:
ubuntu-latest
container
:
image
:
mcr.microsoft.com/playwright:v1.28.0-focal
steps
:
-
run
:
apt-get update && apt-get install git-lfs
-
uses
:
actions/checkout@v3
with
:
lfs
:
'
true'
-
uses
:
actions/setup-node@v3
with
:
node-version
:
18
cache
:
'
yarn'
-
name
:
Install dependencies
run
:
yarn install --frozen-lockfile
-
name
:
Run your tests
run
:
HOME=/root yarn test:pw
-
name
:
Upload test results
if
:
always()
uses
:
actions/upload-artifact@v2
with
:
name
:
playwright-report
path
:
playwright-report
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment