Document a GitHub Actions config to validate hledger-flow
amitaibu opened this issue · 1 comments
amitaibu commented
Not really a feature request, but not sure where to document this.
Below is a setup for GitHub Actions, to validate a repository with hledger-flow
# .github/workflows/hledger-flow.yml
name: Validate hledger-flow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install hledger
run: docker pull dastapov/hledger
- name: Install hledger-flow
run: curl -L https://github.com/apauley/hledger-flow/releases/download/v0.12.4.0/hledger-flow_Linux_x86_64_v0.12.4.0_4b9b027.tar.gz | tar xvz && mv hledger-flow_Linux_x86_64_v0.12.4.0_4b9b027/hledger-flow .
- name: Grant permissions to create files
run: chmod 777 -R ./my-finances
- name: Test hledger file
run: docker run --name="ledger" -v $(pwd):/data dastapov/hledger ./hledger-flow import ./my-finances