Roles en permissions commands #417
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
on: | |
# Trigger on push or pull request events, but only for the 1.x-1.x branch. | |
push: | |
branches: [ 1.x-1.x ] | |
pull_request: | |
branches: [ 1.x-1.x ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out repo under $GITHUB_WORKSPACE. | |
- uses: actions/checkout@v3 | |
# Installs and starts Lando. | |
- name: Lando | |
run: | | |
# For downloading latest DEB file, see: https://gist.github.com/gvenzl/1386755861fb42db492276d3864a378c | |
curl -Lo lando.deb $(curl -s https://api.github.com/repos/lando/lando/releases/latest | grep deb | grep https | awk '{ print $2 }' | sed 's/"//g') | |
sudo dpkg -i --ignore-depends=docker-ce lando.deb | |
cd $GITHUB_WORKSPACE | |
lando start | |
# Runs PHPUnit tests. | |
- name: PHPUnit | |
run: | | |
cd $GITHUB_WORKSPACE | |
lando run-tests |