Skip to content

Commit

Permalink
WIP: testing group/user changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lx-wnk committed Aug 17, 2023
1 parent 125efca commit 4f6b612
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/test_examples.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: Test examples

on:
pull_request:
paths:
- modules/**
- devenv.nix
- devenv.yaml
push:
paths:
- .github/workflows/test_examples.yml
- modules/**
- devenv.nix
- devenv.yaml
Expand All @@ -17,35 +13,27 @@ env:

jobs:
test_examples:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: devenv
- name: Install devenv.sh
run: |
useradd nix-user && groupadd -g 30000 nixbld && usermod -a -G nixbld nix-user
echo "build-users-group = nixbld" >> /etc/nix/nix.conf
nix profile install --accept-flake-config tarball+https://install.devenv.sh/${DEVENV_TESTING_VERSION}
run: nix profile install --accept-flake-config tarball+https://install.devenv.sh/${DEVENV_TESTING_VERSION}
shell: sh
- name: Test SW6 example
run: |
echo running on branch ${GITHUB_REF##*/}
echo running on branch ${GITHUB_REF_NAME}
cd examples/sw6
echo
sed -i "s/ref=v1.0.0/ref=${GITHUB_REF##*/}/g" devenv.yaml
cat devenv.yaml
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
- name: Test SW5 example
run: |
echo running on branch ${GITHUB_REF##*/}
echo running on branch ${GITHUB_REF_NAME}
cd examples/sw5
sed -i "s/ref=v1.0.0/ref=${GITHUB_REF##*/}/g" devenv.yaml
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

0 comments on commit 4f6b612

Please sign in to comment.