Skip to content

Update elm-review (used for testing) #160

Update elm-review (used for testing)

Update elm-review (used for testing) #160

Workflow file for this run

name: "build-test"
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- master
- 'releases/*'
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn --frozen-lockfile
- run: yarn run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Add elm-review, elm and elm-format to path
run: yarn bin >> $GITHUB_PATH
- name: Run elm-review
uses: ./
with:
elm_review: npx --no-install elm-review
# elm_json: elm.json
elm_files: src/Good.elm
working-directory: ${{ github.workspace }}/__tests__/elm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Run elm-review (should-fail)
# uses: ./
# with:
# name: elm-review (should-fail)
# # elm_review: elm-review
# # elm_json: elm.json
# working-directory: ${{ github.workspace }}/__tests__/elm
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}