Update dependency vanilla-framework to v4.18.2 #175
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
name: PR checks | |
on: pull_request | |
env: | |
SECRET_KEY: insecure_test_key | |
jobs: | |
run-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build image | |
run: DOCKER_BUILDKIT=1 docker build --tag design.ubuntu.com . | |
- name: Run image | |
run: | | |
docker run -d -p 80:80 --env SECRET_KEY=insecure_secret_key design.ubuntu.com | |
sleep 1 && curl --head --fail --retry-delay 5 --retry 10 --retry-connrefused http://localhost | |
lint-scss: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint scss | |
run: yarn lint-scss | |
lint-python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install node dependencies | |
run: yarn install --immutable | |
- name: Install python dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
sudo pip3 install flake8==3.7.9 black | |
- name: Lint python | |
run: yarn lint-python | |
linkchecker: | |
name: linkchecker | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build image | |
run: DOCKER_BUILDKIT=1 docker build --tag design.ubuntu.com . | |
- name: Run image | |
run: | | |
docker run -d -p 80:80 --env SECRET_KEY=insecure_secret_key design.ubuntu.com | |
sleep 1 && curl --head --fail --retry-delay 5 --retry 10 --retry-connrefused http://localhost | |
- name: Install linkchecker | |
run: sudo pip install LinkChecker | |
- name: Check internal links | |
run: linkchecker --no-warnings --ignore-url e_sharpen --ignore-url w_[0-9]* --ignore-url h_[0-9]* http://localhost | |
check-inclusive-naming: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Check inclusive naming | |
uses: canonical-web-and-design/inclusive-naming@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-pr-review | |
fail-on-error: true |