Bump jfmengels/elm-review-simplify from 2.0.33 to 2.1.0 in /review #307
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: Fixes | |
on: | |
push: | |
branches: ['**'] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }} | |
restore-keys: ${{ runner.os }}-node_modules | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.elm | |
key: ${{ runner.os }}-elm--home-${{ hashFiles('**/elm.json') }} | |
- name: Install dependencies | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
env: | |
NO_ELM_TOOLING_INSTALL: 1 | |
run: yarn install --frozen-lockfile | |
- name: Install elm tooling | |
run: npx --no-install elm-tooling install | |
- name: Run elm-format | |
run: npx --no-install elm-format --yes | |
- name: Apply elm-review fixes | |
id: elm-review | |
run: npx --no-install elm-review --fix-all-without-prompt | |
continue-on-error: true | |
- uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: 'Apply elm-review fixes' | |
branch: fixes/${{ steps.extract_branch.outputs.branch }} | |
title: "Apply elm-review fixes" | |
body: "*This is an automated pull request because elm-review found problems that could be fixed automatically.*" | |
reviewers: sparksp | |
assignees: sparksp | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }} | |
restore-keys: ${{ runner.os }}-node_modules | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.elm | |
key: ${{ runner.os }}-elm--home-${{ hashFiles('**/elm.json') }} | |
- name: Install dependencies | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
env: | |
NO_ELM_TOOLING_INSTALL: 1 | |
run: yarn install --frozen-lockfile | |
- name: Install elm tooling | |
run: npx --no-install elm-tooling install | |
- name: Build elm docs | |
run: npx --no-install elm make --docs docs.json | |
- uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: 'Update docs.json' | |
branch: docs/${{ steps.extract_branch.outputs.branch }} | |
title: "Update docs.json" | |
body: "*This is an automated pull request because we found that the docs were out of date.*" | |
reviewers: sparksp | |
assignees: sparksp |