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 f13c503
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 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 @@ -28,24 +24,20 @@ jobs:
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
sed "s,kellerkinderDE/devenv-shopware?ref=v1.0.0,kellerkinderDE/devenv-shopware?ref=${GITHUB_REF_NAME}," devenv.yaml
cat 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 "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 f13c503

Please sign in to comment.