Move actions to their own file.
This commit is contained in:
parent
756c222877
commit
87f9270a6c
2
.github/workflows/Makefile
vendored
2
.github/workflows/Makefile
vendored
@ -1,3 +1,3 @@
|
||||
all:
|
||||
cue export --out yaml ci.cue > ci.yaml
|
||||
cue export --out yaml > ci.yaml
|
||||
|
||||
|
37
.github/workflows/actions.cue
vendored
Normal file
37
.github/workflows/actions.cue
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
package actions
|
||||
|
||||
#Name: string
|
||||
#Branches: branches: [...string]
|
||||
#Tags: tags: [...string]
|
||||
|
||||
#On: {
|
||||
push?: #Branches
|
||||
pull_request?: #Branches
|
||||
page_build?: #Branches
|
||||
}
|
||||
|
||||
#Action: "actions/checkout@v2" | "erlef/setup-beam@v1"
|
||||
#Uses: {
|
||||
uses: #Action
|
||||
with?: {
|
||||
...
|
||||
}
|
||||
}
|
||||
#Run: {
|
||||
name: string
|
||||
run: string
|
||||
}
|
||||
#Steps: #Uses | #Run
|
||||
|
||||
#OS_Version: *"ubuntu-latest" | "macos-latest" | "windows_latest"
|
||||
|
||||
#Jobs: ci: {
|
||||
name: string
|
||||
"runs-on": string
|
||||
strategy:
|
||||
matrix: {
|
||||
otp_vsn: [...string]
|
||||
os: [...#OS_Version]
|
||||
}
|
||||
steps: [...#Steps]
|
||||
}
|
2
.github/workflows/ci.cue
vendored
2
.github/workflows/ci.cue
vendored
@ -1,3 +1,5 @@
|
||||
package actions
|
||||
|
||||
// Versions for simplicity
|
||||
_versions: {
|
||||
latest: ["24.0"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user