Improving workflow

Original commit: 248de84d99
This commit is contained in:
Wojciech Danilo 2021-03-04 19:13:03 +01:00
parent dbdda7b9f0
commit ab1d60894b
3 changed files with 11 additions and 6 deletions

View File

@ -6,6 +6,7 @@
name: GUI CI
'on':
- push
- pull_request
jobs:
version_assertions:
name: Assertions
@ -28,10 +29,14 @@ jobs:
shell: bash
- name: Assert Version Unstable
run: node ./run assert-version-unstable --skip-version-validation
if: github.ref == 'refs/heads/unstable'
if: >-
github.ref == 'refs/heads/unstable' ||
github.event.pull_request.base.ref == 'refs/heads/unstable'
- name: Assert Version Stable
run: node ./run assert-version-stable --skip-version-validation
if: github.ref == 'refs/heads/stable'
if: >-
github.ref == 'refs/heads/stable' ||
github.event.pull_request.base.ref == 'refs/heads/stable'
- id: checkCurrentReleaseTag
uses: mukunku/tag-exists-action@v1.0.0
env:

View File

@ -317,13 +317,13 @@ function uploadToCDN(...names) {
let assertVersionUnstable = {
name: "Assert Version Unstable",
run: "node ./run assert-version-unstable --skip-version-validation",
if: `github.ref == 'refs/heads/unstable'`
if: `github.ref == 'refs/heads/unstable' || github.event.pull_request.base.ref == 'refs/heads/unstable'`
}
let assertVersionStable = {
name: "Assert Version Stable",
run: "node ./run assert-version-stable --skip-version-validation",
if: `github.ref == 'refs/heads/stable'`
if: `github.ref == 'refs/heads/stable' || github.event.pull_request.base.ref == 'refs/heads/stable'`
}
let assertReleaseDoNotExists = [
@ -361,7 +361,7 @@ let buildCondition = `contains(github.event.head_commit.message,'${FLAG_FORCE_
let workflow = {
name : "GUI CI",
on: ['push'],
on: ['push','pull_request'],
jobs: {
version_assertions: job_on_macos("Assertions", [
getCurrentReleaseChangelogInfo,

View File

@ -1281,7 +1281,7 @@ dependencies = [
"futures 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"fuzzly 0.1.0",
"ide-view 0.1.0",
"itertools 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
"itertools 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
"js-sys 0.3.35 (registry+https://github.com/rust-lang/crates.io-index)",
"json-rpc 0.1.0",
"mockall 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",