Skip to content

Merge pull request #148 from sparksp/dependabot/npm_and_yarn/semver-5… #298

Merge pull request #148 from sparksp/dependabot/npm_and_yarn/semver-5…

Merge pull request #148 from sparksp/dependabot/npm_and_yarn/semver-5… #298

Workflow file for this run

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