Remove old CIP materials and other unused pages #18609
Workflow file for this run
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: Run linter | |
on: | |
push: | |
jobs: | |
ruby_linting: | |
env: | |
GOVUK_NOTIFY_API_KEY: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout Code | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1.152.0 | |
with: | |
ruby-version: '3.2.2' | |
- name: Install dependencies | |
run: bundle install | |
- name: Lint Ruby | |
run: bundle exec rubocop --format progress --format json --out=${{ github.workspace }}/rubocop-result.json | |
- name: Lint ERB Templates | |
if: false | |
run: |- | |
bundle exec erblint --lint-all | |
- name: Keep Rubocop output | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: rubocop_results | |
path: ${{ github.workspace }}/rubocop-result.json | |
js_linting: | |
env: | |
GOVUK_NOTIFY_API_KEY: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout Code | |
- name: Set up Node | |
uses: actions/setup-node@v3.7.0 | |
with: | |
node-version: '18.17.x' | |
cache: 'yarn' | |
- name: Yarn install | |
run: npm i -g yarn && yarn | |
- name: Lint JS | |
run: |- | |
yarn lint | |
scss_linting: | |
env: | |
GOVUK_NOTIFY_API_KEY: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout Code | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1.152.0 | |
with: | |
ruby-version: '3.2.2' | |
- name: Install dependencies | |
run: bundle install | |
- name: Lint SCSS | |
run: |- | |
bundle exec rake lint:scss | |
erb_linting: | |
env: | |
GOVUK_NOTIFY_API_KEY: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout Code | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1.152.0 | |
with: | |
ruby-version: '3.2.2' | |
- name: Install dependencies | |
run: bundle install | |
- name: Lint ERB Templates | |
if: false | |
run: |- | |
bundle exec erblint --lint-all |