Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created January 12, 2020 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitaibu/80e45a8789f19692001d78aeeb3ec9b1 to your computer and use it in GitHub Desktop.
Save amitaibu/80e45a8789f19692001d78aeeb3ec9b1 to your computer and use it in GitHub Desktop.
GitHub Action to validate 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment