-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from kellerkinderDE/integration
Integration/Initial Release
- Loading branch information
Showing
18 changed files
with
586 additions
and
394 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
source_url "https://raw.githubusercontent.com/cachix/devenv/v0.6.2/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0=" | ||
source_url "https://raw.githubusercontent.com/cachix/devenv/d1f7b48e35e6dee421cfd0f51481d17f77586997/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0=" | ||
|
||
nix_direnv_watch_file devenv.nix | ||
nix_direnv_watch_file devenv.lock | ||
nix_direnv_watch_file devenv.yaml | ||
nix_direnv_watch_file devenv.local.nix | ||
|
||
use devenv | ||
use devenv |
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,49 @@ | ||
name: Test examples | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- release/** | ||
push: | ||
paths: | ||
- .github/workflows/test_examples.yml | ||
- examples/** | ||
- modules/** | ||
- devenv.nix | ||
- devenv.yaml | ||
|
||
env: | ||
DEVENV_VERSION: v0.6.3 | ||
|
||
jobs: | ||
list-examples: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- id: set-matrix | ||
run: echo "matrix=$(ls examples/ | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT | ||
test_examples: | ||
needs: list-examples | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
manifest: ${{ fromJson(needs.list-examples.outputs.matrix) }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v22 | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: devenv | ||
- name: Install devenv.sh | ||
run: nix profile install --accept-flake-config tarball+https://install.devenv.sh/${DEVENV_VERSION} | ||
shell: sh | ||
- name: Test ${{ matrix.manifest }} example | ||
run: | | ||
echo running on branch ${GITHUB_REF_NAME} | ||
cd examples/${{ matrix.manifest }} | ||
sed -i "s,kellerkinderDE/devenv-shopware?ref=v1.0.0,kellerkinderDE/devenv-shopware?ref=${GITHUB_REF_NAME}," devenv.yaml | ||
devenv ci -vvv | ||
devenv shell echo ok |
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
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
Oops, something went wrong.