elm-format-action/.github/workflows/test.yml
2021-01-08 10:59:00 +00:00

35 lines
893 B
YAML

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
- run: yarn run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- name: Add elm-format to path
run: yarn bin >> $GITHUB_PATH
- uses: ./
with:
# elm_format: elm-format
elm_files: Good.elm
working-directory: ${{ github.workspace }}/__tests__/elm
- uses: ./
with: # make sure that globbing works
elm_glob: true
elm_files: |
**/*.elm
!**/Bad.elm
working-directory: ${{ github.workspace }}/__tests__/elm