Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
beb6e52f
Unverified
Commit
beb6e52f
authored
3 years ago
by
ylemkimon
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: run macOS, Windows, Java tests on `ci:fulltest` label (#12086)
parent
948c0158
Loading
Loading
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/build-pr.yml
+0
-110
0 additions, 110 deletions
.github/workflows/build-pr.yml
.github/workflows/build.yml
+25
-6
25 additions, 6 deletions
.github/workflows/build.yml
with
25 additions
and
116 deletions
.github/workflows/build-pr.yml
deleted
100644 → 0
+
0
−
110
View file @
948c0158
name
:
build-pr
on
:
pull_request
:
env
:
NODE_VERSION
:
14
PYTHON_VERSION
:
3.9
SKIP_JAVA_TESTS
:
true
concurrency
:
group
:
${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress
:
true
jobs
:
test
:
runs-on
:
ubuntu-latest
# tests shouldn't need more time
timeout-minutes
:
30
steps
:
-
uses
:
actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
# renovate: tag=v2.3.4
with
:
fetch-depth
:
2
-
name
:
Set up Node.js ${{ env.NODE_VERSION }}
uses
:
actions/setup-node@270253e841af726300e85d718a5f606959b2903c
# renovate: tag=v2.4.1
with
:
node-version
:
${{ env.NODE_VERSION }}
cache
:
yarn
-
name
:
Set up Python ${{ env.PYTHON_VERSION }}
uses
:
actions/setup-python@dc73133d4da04e56a135ae2246682783cc7c7cb6
# renovate: tag=v2.2.2
with
:
python-version
:
${{ env.PYTHON_VERSION }}
-
name
:
Init platform
shell
:
bash
run
:
|
git config --global core.autocrlf false
git config --global core.symlinks true
git config --global user.email 'renovate@whitesourcesoftware.com'
git config --global user.name 'Renovate Bot'
npm config set scripts-prepend-node-path true
git --version
echo "Node $(node --version)"
python --version
echo "Yarn $(yarn --version)"
-
name
:
Installing dependencies
run
:
yarn install --frozen-lockfile
-
name
:
Unit tests
run
:
yarn jest --maxWorkers=2 --ci
-
name
:
Codecov
uses
:
codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
# renovate: tag=v2.1.0
if
:
always()
# build after tests to exclude files
-
name
:
Build
run
:
yarn build
-
name
:
E2E Test
run
:
yarn test-e2e
lint
:
runs-on
:
ubuntu-latest
# lint shouldn't need more than 10 min
timeout-minutes
:
15
steps
:
-
uses
:
actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
# renovate: tag=v2.3.4
with
:
fetch-depth
:
2
-
name
:
Set up Node.js ${{ env.NODE_VERSION }}
uses
:
actions/setup-node@270253e841af726300e85d718a5f606959b2903c
# renovate: tag=v2.4.1
with
:
node-version
:
${{ env.NODE_VERSION }}
cache
:
yarn
-
name
:
Init platform
run
:
|
git config --global core.autocrlf false
git config --global core.symlinks true
git config --global user.email 'renovate@whitesourcesoftware.com'
git config --global user.name 'Renovate Bot'
npm config set scripts-prepend-node-path true
echo "Node $(node --version)"
echo "Yarn $(yarn --version)"
-
name
:
Installing dependencies
run
:
yarn install --frozen-lockfile
-
name
:
Lint
run
:
|
yarn ls-lint
yarn eslint -f gha
yarn prettier
yarn markdown-lint
yarn git-check
-
name
:
Test schema
run
:
yarn test-schema
-
name
:
Type check
run
:
yarn type-check
This diff is collapsed.
Click to expand it.
.github/workflows/build.yml
+
25
−
6
View file @
beb6e52f
...
@@ -6,6 +6,8 @@ on:
...
@@ -6,6 +6,8 @@ on:
-
main
-
main
-
v25
-
v25
pull_request
:
workflow_dispatch
:
workflow_dispatch
:
inputs
:
inputs
:
dryRun
:
dryRun
:
...
@@ -13,6 +15,10 @@ on:
...
@@ -13,6 +15,10 @@ on:
default
:
'
true'
default
:
'
true'
required
:
false
required
:
false
concurrency
:
group
:
${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress
:
true
env
:
env
:
# Currently no way to detect automatically (#8153)
# Currently no way to detect automatically (#8153)
DEFAULT_BRANCH
:
main
DEFAULT_BRANCH
:
main
...
@@ -21,6 +27,7 @@ env:
...
@@ -21,6 +27,7 @@ env:
jobs
:
jobs
:
test
:
test
:
name
:
${{ format('test ({0})', matrix.os) }}
runs-on
:
${{ matrix.os }}
runs-on
:
${{ matrix.os }}
# tests shouldn't need more time
# tests shouldn't need more time
...
@@ -28,16 +35,31 @@ jobs:
...
@@ -28,16 +35,31 @@ jobs:
strategy
:
strategy
:
matrix
:
matrix
:
os
:
[
ubuntu-latest
,
macos-11
,
windows-latest
]
os
:
[
ubuntu-latest
]
node-version
:
[
14
]
node-version
:
[
14
]
python-version
:
[
3.9
]
python-version
:
[
3.9
]
java-version
:
[
11
]
java-version
:
[
11
]
# skip macOS and Windows test on pull requests without 'ci:fulltest' label
include
:
>-
${{ fromJSON((github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:fulltest')) && '[{
"os": "macos-latest",
"node-version": 14,
"python-version": 3.9,
"java-version": 11
}, {
"os": "windows-latest",
"node-version": 14,
"python-version": 3.9,
"java-version": 11
}]' || '[]') }}
env
:
env
:
coverage
:
${{ matrix.os == 'ubuntu-latest' && matrix.node-version == 14 }}
coverage
:
${{ matrix.os == 'ubuntu-latest' && matrix.node-version == 14 }}
NODE_VERSION
:
${{ matrix.node-version }}
NODE_VERSION
:
${{ matrix.node-version }}
PYTHON_VERSION
:
${{ matrix.python-version }}
PYTHON_VERSION
:
${{ matrix.python-version }}
JAVA_VERSION
:
${{ matrix.java-version }}
JAVA_VERSION
:
${{ matrix.java-version }}
# skip Java tests on pull requests without 'ci:fulltest' label
SKIP_JAVA_TESTS
:
${{ matrix.node-version != 14 || (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:fulltest')) }}
steps
:
steps
:
-
uses
:
actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
# renovate: tag=v2.3.4
-
uses
:
actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
# renovate: tag=v2.3.4
...
@@ -56,7 +78,7 @@ jobs:
...
@@ -56,7 +78,7 @@ jobs:
python-version
:
${{ env.PYTHON_VERSION }}
python-version
:
${{ env.PYTHON_VERSION }}
-
name
:
Set up Java ${{ env.JAVA_VERSION }}
-
name
:
Set up Java ${{ env.JAVA_VERSION }}
if
:
env.
NODE_VERSION == '14
'
if
:
env.
SKIP_JAVA_TESTS == 'false
'
uses
:
actions/setup-java@8db439b6b47e5e12312bf036760bbaa6893481ac
# renovate: tag=v2.3.1
uses
:
actions/setup-java@8db439b6b47e5e12312bf036760bbaa6893481ac
# renovate: tag=v2.3.1
with
:
with
:
java-version
:
${{ env.JAVA_VERSION }}
java-version
:
${{ env.JAVA_VERSION }}
...
@@ -64,10 +86,6 @@ jobs:
...
@@ -64,10 +86,6 @@ jobs:
java-package
:
jre
java-package
:
jre
check-latest
:
false
check-latest
:
false
-
name
:
Skip Java tests
if
:
env.NODE_VERSION != '14'
run
:
echo "SKIP_JAVA_TESTS=true" >> $GITHUB_ENV
-
name
:
Init platform
-
name
:
Init platform
shell
:
bash
shell
:
bash
run
:
|
run
:
|
...
@@ -145,6 +163,7 @@ jobs:
...
@@ -145,6 +163,7 @@ jobs:
release
:
release
:
needs
:
[
lint
,
test
]
needs
:
[
lint
,
test
]
if
:
github.event_name != 'pull_request'
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
# release shouldn't need more than 5 min
# release shouldn't need more than 5 min
timeout-minutes
:
15
timeout-minutes
:
15
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment