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
221c1e90
Commit
221c1e90
authored
Jun 14, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
combine eslint and tsc jobs
parent
af6ebf25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
24 deletions
+15
-24
checks.yml
.github/workflows/checks.yml
+15
-24
No files found.
.github/workflows/checks.yml
View file @
221c1e90
...
...
@@ -7,11 +7,14 @@ on:
-
main
jobs
:
lint
:
name
:
ESLint
code_quality
:
name
:
Code quality
runs-on
:
ubuntu-latest
if
:
"
!contains(github.event.pull_request.labels.*.name,
'WIP')"
steps
:
-
name
:
Cancel previous runs
uses
:
styfle/cancel-workflow-action@0.11.0
-
name
:
Checkout repo
uses
:
actions/checkout@v3
...
...
@@ -29,33 +32,17 @@ jobs:
-
name
:
Run ESLint
run
:
yarn lint:eslint
type_check
:
name
:
TypeScript
runs-on
:
ubuntu-latest
if
:
"
!contains(github.event.pull_request.labels.*.name,
'WIP')"
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
with
:
useRollingCache
:
true
-
name
:
Compile TypeScript
run
:
yarn lint:tsc
jest_tests
:
name
:
Run unit tests with Jest
needs
:
[
lint
,
type_check
]
needs
:
[
code_quality
]
runs-on
:
ubuntu-latest
steps
:
-
name
:
Cancel previous runs
uses
:
styfle/cancel-workflow-action@0.11.0
-
name
:
Checkout repo
uses
:
actions/checkout@v3
...
...
@@ -75,12 +62,16 @@ jobs:
pw_tests
:
name
:
Run components visual tests with PlayWright
needs
:
[
lint
,
type_check
]
needs
:
[
code_quality
]
# if: ${{ false }}
runs-on
:
ubuntu-latest
container
:
image
:
mcr.microsoft.com/playwright:v1.
28
.0-focal
image
:
mcr.microsoft.com/playwright:v1.
32
.0-focal
steps
:
-
name
:
Cancel Previous Runs
uses
:
styfle/cancel-workflow-action@0.11.0
-
name
:
Install git-lfs
run
:
apt-get update && apt-get install git-lfs
...
...
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