-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: refactor github workflows for readability (#192)
* refactor: update github workflows for readability * refactor: rename of ci.yaml to tests.yaml to align with in-file naming * refactor: make workflow install commands easier to copy paste locally * refactor: transition back to env vars in test workflow
- Loading branch information
1 parent
439f4de
commit 46b316d
Showing
4 changed files
with
51 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Publish docs via GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v5 | ||
|
||
- name: Install dependencies | ||
run: pip install -r .mkdocs/requirements.txt | ||
|
||
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
|
||
- name: Publish docs | ||
run: mkdocs gh-deploy --force -f .mkdocs/mkdocs.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Tests | ||
on: | ||
pull_request: | ||
|
||
env: | ||
JSONNET_VERSION: "0.20.0" | ||
JSONNET_BUNDLER_VERSION: "0.5.1" | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install jsonnet | ||
run: | | ||
wget -qO- https://github.com/google/go-jsonnet/releases/download/v${JSONNET_VERSION}/go-jsonnet_${JSONNET_VERSION}_Linux_x86_64.tar.gz \ | ||
| tar -xvz --one-top-level=$HOME/.local/bin | ||
- name: Install jsonnet-bundler | ||
run: | | ||
wget -qO "$HOME/.local/bin/jb" https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v${JSONNET_BUNDLER_VERSION}/jb-linux-amd64 | ||
chmod u+x "$HOME/.local/bin/jb" | ||
- name: Run tests | ||
run: make test |