Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
9694bd8813 | |||
f50c15b6ef |
16
.github/workflows/test.yaml
vendored
Normal file
16
.github/workflows/test.yaml
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
name: Random Test
|
||||||
|
on: push # yamllint disable-line rule:truthy
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: run a scwrypts thing
|
||||||
|
uses: wrynegade/scwrypts@main
|
||||||
|
with:
|
||||||
|
scwrypt: --name hello-world --group scwrypts --type py
|
||||||
|
args: --message "hello from github actions ci <3"
|
||||||
|
|
||||||
|
- name: cat config stuff
|
||||||
|
shell: bash
|
||||||
|
run: ls ~/.config/scwrypts; cat ~/.config/scwrypts/*
|
11
action.yaml
11
action.yaml
@ -27,7 +27,7 @@ runs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: wrynegade/scwrypts
|
repository: wrynegade/scwrypts
|
||||||
path: ./wrynegade/scwrypts
|
path: $HOME/scwrypts
|
||||||
ref: ${{ inputs.version }}
|
ref: ${{ inputs.version }}
|
||||||
|
|
||||||
- name: check dependencies
|
- name: check dependencies
|
||||||
@ -43,7 +43,7 @@ runs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install --yes zsh fzf ripgrep
|
sudo apt-get install --yes zsh fzf ripgrep
|
||||||
|
|
||||||
for D in $($GITHUB_WORKSPACE/wrynegade/scwrypts/scwrypts -n --name check-all-dependencies --group ci --type zsh)
|
for D in $($HOME/scwrypts/scwrypts -n --name check-all-dependencies --group ci --type zsh)
|
||||||
do
|
do
|
||||||
echo "--- installing $D ---"
|
echo "--- installing $D ---"
|
||||||
( sudo apt-get install --yes $D; exit 0; )
|
( sudo apt-get install --yes $D; exit 0; )
|
||||||
@ -51,12 +51,11 @@ runs:
|
|||||||
} > $HOME/.scwrypts.apt-get.log 2>&1
|
} > $HOME/.scwrypts.apt-get.log 2>&1
|
||||||
|
|
||||||
echo "updating virtual dependencies"
|
echo "updating virtual dependencies"
|
||||||
$GITHUB_WORKSPACE/wrynegade/scwrypts/scwrypts -n \
|
$HOME/scwrypts/scwrypts -n \
|
||||||
--name scwrypts/virtualenv/update-all \
|
--name scwrypts/virtualenv/update-all \
|
||||||
--group scwrypts \
|
--group scwrypts \
|
||||||
--type zsh \
|
--type zsh \
|
||||||
;
|
> $HOME/.scwrypts.virtualenv.log 2>&1
|
||||||
#> $HOME/.scwrypts.virtualenv.log 2>&1
|
|
||||||
|
|
||||||
echo "CI_SCWRYPTS_READY=1" >> $GITHUB_ENV
|
echo "CI_SCWRYPTS_READY=1" >> $GITHUB_ENV
|
||||||
exit 0
|
exit 0
|
||||||
@ -66,4 +65,4 @@ runs:
|
|||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
SCWRYPTS_ENV: ${{ inputs.scwrypts-env }}
|
SCWRYPTS_ENV: ${{ inputs.scwrypts-env }}
|
||||||
run: $GITHUB_WORKSPACE/wrynegade/scwrypts/scwrypts ${{inputs.scwrypt}} -- ${{inputs.args}} || exit 1
|
run: $HOME/scwrypts/scwrypts ${{inputs.scwrypt}} -- ${{inputs.args}} || exit 1
|
||||||
|
Reference in New Issue
Block a user