.github/workflows/main.yml #24
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: workflow_dispatch | |
# on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Clone the code | |
uses: actions/checkout@v1 | |
- name: Install DDEV | |
uses: ddev/github-action-setup-ddev@v1 | |
- name: Build the website | |
run: ddev build | |
- name: Check for JavaScript coding standard | |
run: ddev yarn --cwd=web/themes/custom/alps_trips lint:js | |
- name: Check for CSS coding standard | |
run: ddev yarn --cwd=web/themes/custom/alps_trips lint:css | |
- name: Check for PHP coding standard | |
run: ddev composer run-script lint:php | |
- run: docker ps | |
- run: docker network ls | |
- name: Run BackstopJs tests | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: backstopjs/backstopjs:6.1.4 | |
options: -v ${{ github.workspace }}/.ddev/tests:/src | |
run: | | |
ls -la |