mirror of
https://github.com/sparksp/elm-format-action.git
synced 2024-11-28 13:17:32 +03:00
35 lines
893 B
YAML
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
|