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 5dfe6f2
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/test_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Test examples

on:
pull_request:
paths:
- modules/**
- devenv.nix
- devenv.yaml
# paths:
# - modules/**
# - devenv.nix
# - devenv.yaml
push:
paths:
- modules/**
- devenv.nix
- devenv.yaml
# paths:
# - modules/**
# - devenv.nix
# - devenv.yaml

env:
DEVENV_TESTING_VERSION: v0.6.3
Expand All @@ -29,23 +29,21 @@ jobs:
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}
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 -i "s/ref=v1.0.0/ref=${GITHUB_REF_NAME##*/}/g" 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 -i "s/ref=v1.0.0/ref=${GITHUB_REF_NAME##*/}/g" devenv.yaml
devenv ci -vvv
devenv shell echo ok

0 comments on commit 5dfe6f2

Please sign in to comment.