Fix: Handle Non-ascii Unicode characters in ffprobe output #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI for haskell-ffprobe" | |
on: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
release: | |
types: [ published ] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
Changes: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
sources: ${{ steps.filter.outputs.sources }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
sources: | |
- 'src/**' | |
- 'test/**.hs' | |
- '.github/workflows/CI.yml' | |
Build: | |
needs: changes | |
if: ${{ needs.changes.outputs.sources == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Setup GHC | |
uses: ./.github/actions/cache | |
- name: Build | |
run: stack build | |
Format: | |
if: ${{ needs.changes.outputs.sources == 'true' }} | |
runs-on: ubuntu-latest | |
needs: [ Build ] | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Setup GHC | |
uses: ./.github/actions/cache | |
- uses: haskell-actions/run-fourmolu@v9 | |
with: | |
version: "0.14.0.0" | |
pattern: | | |
./src/**/*.hs | |
./test/**/*.hs | |
follow-symbolic-links: false | |
Lint: | |
if: ${{ needs.changes.outputs.sources == 'true' }} | |
runs-on: ubuntu-latest | |
needs: [ Build ] | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Setup GHC | |
uses: ./.github/actions/cache | |
- name: 'Set up HLint' | |
uses: rwe/actions-hlint-setup@v1 | |
with: | |
version: '3.5' | |
- name: 'Run HLint' | |
uses: rwe/actions-hlint-run@v2 | |
with: | |
path: '["./src/", "./test/"]' | |
fail-on: warning | |
Tests: | |
runs-on: ubuntu-latest | |
needs: [ Build ] | |
if: ${{ needs.changes.outputs.sources == 'true' }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- run: sudo apt update && sudo apt install -y ffmpeg | |
- name: Setup GHC | |
uses: ./.github/actions/cache | |
- name: Run unit tests | |
run: stack test |