1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-01 17:15:06 +07:00

chore: reverts commit fc11429

This commit is contained in:
Juan Picado @jotadeveloper 2019-04-28 14:32:40 +02:00
parent c4cb559137
commit ea1ebde2f1
No known key found for this signature in database
GPG Key ID: 18AC54485952D158
2 changed files with 55 additions and 79 deletions

124
.github/main.workflow vendored
View File

@ -1,93 +1,79 @@
workflow "build & test" { workflow "build and test" {
resolves = [,
"node:12"
]
on = "pull_request"
}
action "PR:filter" {
uses = "actions/bin/filter@master"
args = "action 'opened|synchronize'"
}
action "node:8" {
needs = ["PR:filter"]
uses = "docker://node:8"
args = "sh scripts/build-test.sh"
}
action "node:10" {
needs = ["PR:filter"]
uses = "docker://node:10"
args = "sh scripts/build-test.sh"
}
action "node:11" {
needs = ["PR:filter"]
uses = "docker://node:11"
args = "sh scripts/build-test.sh"
}
action "node:12" {
needs = [
"node:8",
"node:10",
"node:11"
]
uses = "docker://node:12"
args = "sh scripts/build-test.sh"
}
workflow "build, test & release" {
resolves = [ resolves = [
"github-release" "lint",
"test",
"branch-filter",
] ]
on = "push" on = "push"
} }
action "push:node:8" { action "branch-filter" {
uses = "docker://node:8" uses = "actions/bin/filter@master"
args = "sh scripts/build-test.sh" args = "branch"
} }
action "push:node:10" { action "install" {
uses = "docker://node:10" uses = "docker://node:10"
args = "sh scripts/build-test.sh" args = "yarn install"
} }
action "push:node:11" { action "build" {
uses = "docker://node:11" uses = "docker://node:10"
args = "sh scripts/build-test.sh" needs = ["install"]
args = "yarn run build"
} }
action "push:node:12" { action "lint" {
needs = [ uses = "docker://node:10"
"push:node:8", needs = ["install"]
"push:node:10", args = "yarn run lint"
"push:node:11", }
action "test" {
uses = "docker://node:10"
needs = ["build"]
args = "yarn run test"
}
workflow "release" {
resolves = [
"github-release",
"release:lint",
] ]
uses = "docker://node:12" on = "push"
args = "sh scripts/build-test.sh"
} }
action "release:filter" { action "release:tag-filter" {
needs = [
"push:node:12"
]
uses = "actions/bin/filter@master" uses = "actions/bin/filter@master"
args = "tag v*" args = "tag v*"
} }
action "release:authorization" { action "release:install" {
needs = ["release:filter"] uses = "docker://node:10"
uses = "actions/bin/filter@master" needs = ["release:tag-filter"]
args = ["actor", "ayusharma", "juanpicado"] args = "yarn install"
}
action "release:build" {
uses = "docker://node:10"
needs = ["release:install"]
args = "yarn run build"
}
action "release:lint" {
uses = "docker://node:10"
needs = ["release:install"]
args = "yarn run lint"
}
action "release:test" {
uses = "docker://node:10"
needs = ["release:build"]
args = "yarn run test"
} }
action "release:publish" { action "release:publish" {
needs = [ needs = ["release:test"]
"release:authorization"
]
uses = "docker://node:10" uses = "docker://node:10"
args = "sh scripts/publish.sh" args = "sh scripts/publish.sh"
secrets = [ secrets = [
@ -105,4 +91,4 @@ action "github-release" {
secrets = [ secrets = [
"GITHUB_TOKEN", "GITHUB_TOKEN",
] ]
} }

View File

@ -1,10 +0,0 @@
#!/bin/bash
yarn install
yarn run build
yarn run lint
yarn run test