From a9d77a20008efe82862cc1adbfa7a6d4f09f8ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Menou?= Date: Thu, 8 Dec 2016 10:19:15 +0200 Subject: Release code as open source --- .github/workflows/pr.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/pr.yml (limited to '.github') diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..2e81015 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,44 @@ +name: Test PR +on: + push: + branches: + - master + pull_request: + branches: + - master + release: + types: [created, edited, published] + +jobs: + hlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: 'Set up HLint' + uses: haskell/actions/hlint-setup@v2 + with: + version: '2.2.1' + - name: 'Run HLint' + uses: haskell/actions/hlint-run@v2 + with: + path: '["core/", "specification/", "scaffolder/"]' + fail-on: warning + build-haskell: + name: EDI Parser + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v2 + with: + path: | + ~/.stack + .stack-work + key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml', '*/package.yaml') }} + restore-keys: | + ${{ runner.os }}-stack + - uses: haskell/actions/setup@v2 + with: + enable-stack: true + stack-version: 'latest' + - run: make test -- cgit v1.2.3