;ci: cleanups; update quick CI like the others
This commit is contained in:
parent
7ad0f9dd6d
commit
36bc5b899b
2
.github/workflows/linux-nightly.yml
vendored
2
.github/workflows/linux-nightly.yml
vendored
@ -159,7 +159,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install GHC
|
- name: Install GHC
|
||||||
run: |
|
run: |
|
||||||
stack $ARGS setup
|
stack $ARGS setup --install-ghc
|
||||||
env:
|
env:
|
||||||
ARGS: ${{ matrix.plan.resolver }}
|
ARGS: ${{ matrix.plan.resolver }}
|
||||||
|
|
||||||
|
|||||||
20
.github/workflows/mac-nightly.yml
vendored
20
.github/workflows/mac-nightly.yml
vendored
@ -109,33 +109,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Install GHC
|
- name: Install GHC
|
||||||
run: |
|
run: |
|
||||||
stack --resolver=lts setup
|
stack setup --install-ghc
|
||||||
|
|
||||||
# - name: Install shelltestrunner
|
|
||||||
# - if [[ ! -x ~/.local/bin/shelltest ]]; then stack install shelltestrunner-1.9; fi
|
|
||||||
# - shelltest --version
|
|
||||||
|
|
||||||
- name: Install haskell deps
|
- name: Install haskell deps
|
||||||
run: |
|
run: |
|
||||||
stack --resolver=lts --install-ghc build --test --bench --only-dependencies
|
stack build --test --bench --only-dependencies
|
||||||
# --no-terminal --bench --install-ghc
|
|
||||||
|
|
||||||
- name: Build hledger and test unit tests, doc tests
|
- name: Build hledger and test unit tests, doc tests
|
||||||
run: |
|
run: |
|
||||||
stack --resolver=lts test --only-dependencies
|
stack build --pedantic --test
|
||||||
# --no-terminal --bench --install-ghc
|
|
||||||
|
|
||||||
- name: Install shelltestrunner
|
- name: Install shelltestrunner
|
||||||
run: |
|
run: |
|
||||||
export PATH=~/.local/bin:$PATH
|
export PATH=~/.local/bin:$PATH
|
||||||
if [[ ! -x ~/.local/bin/shelltest ]]; then stack $ARGS install shelltestrunner-1.9; fi
|
if [[ ! -x ~/.local/bin/shelltest ]]; then stack install shelltestrunner-1.9; fi
|
||||||
shelltest --version
|
shelltest --version
|
||||||
env:
|
|
||||||
ARGS: ${{ matrix.plan.resolver }}
|
|
||||||
|
|
||||||
- name: Test functional tests (excluding addons)
|
- name: Test functional tests (excluding addons)
|
||||||
run: |
|
run: |
|
||||||
COLUMNS=80 stack $ARGS exec -- shelltest --execdir -j16 tests -x /bin -x /addons
|
COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons
|
||||||
env:
|
|
||||||
ARGS: ${{ matrix.plan.resolver }}
|
|
||||||
|
|
||||||
|
|||||||
77
.github/workflows/quick.yml
vendored
77
.github/workflows/quick.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
# quick build and tests (unit & func, but not doc or haddock tests),
|
# quick build and tests (unit & func, but not doc or haddock tests),
|
||||||
# on linux, for noteworthy pushes to master
|
# on linux, for noteworthy pushes to master
|
||||||
|
|
||||||
name: quick CI
|
name: push CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -13,6 +13,7 @@ on:
|
|||||||
- 'hledger'
|
- 'hledger'
|
||||||
- 'hledger-ui'
|
- 'hledger-ui'
|
||||||
- 'hledger-web'
|
- 'hledger-web'
|
||||||
|
- 'tests'
|
||||||
- '!**.md'
|
- '!**.md'
|
||||||
- '!**.1'
|
- '!**.1'
|
||||||
- '!**.5'
|
- '!**.5'
|
||||||
@ -24,55 +25,71 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Check out
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# cached things
|
# cached things
|
||||||
|
|
||||||
- name: Cache ~/.stack
|
# declare/restore cached things
|
||||||
|
|
||||||
|
- name: Cache stack global package db
|
||||||
|
id: stack-global
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.stack
|
path: ~/.stack
|
||||||
key: ${{ runner.os }}-stack
|
key: ${{ runner.os }}-stack-global-${{ hashFiles('**.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-stack-global
|
||||||
|
${{ runner.os }}-stack
|
||||||
|
|
||||||
- name: Cache ~/.local/bin
|
- name: Cache stack-installed programs in ~/.local/bin
|
||||||
|
id: stack-programs
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.local/bin
|
path: ~/.local/bin
|
||||||
key: ${{ runner.os }}-local-bin
|
key: ${{ runner.os }}-stack-programs-${{ hashFiles('**.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-stack-programs
|
||||||
|
${{ runner.os }}-local-bin
|
||||||
|
|
||||||
|
# stack's local package dbs for the project and each package
|
||||||
- name: Cache .stack-work
|
- name: Cache .stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: .stack-work
|
path: .stack-work
|
||||||
key: ${{ runner.os }}-stack-work
|
key: ${{ runner.os }}-stack-work-${{ hashFiles('**.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-stack-work
|
||||||
|
|
||||||
- name: Cache hledger-lib/.stack-work
|
- name: Cache hledger-lib/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger-lib/.stack-work
|
path: hledger-lib/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-lib-stack-work
|
key: ${{ runner.os }}-hledger-lib-stack-work-${{ hashFiles('hledger-lib/package.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-hledger-lib-stack-work
|
||||||
|
|
||||||
- name: Cache hledger/.stack-work
|
- name: Cache hledger/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger/.stack-work
|
path: hledger/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-stack-work
|
key: ${{ runner.os }}-hledger-stack-work-${{ hashFiles('hledger/package.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-hledger-stack-work
|
||||||
|
|
||||||
- name: Cache hledger-ui/.stack-work
|
- name: Cache hledger-ui/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger-ui/.stack-work
|
path: hledger-ui/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-ui-stack-work
|
key: ${{ runner.os }}-hledger-ui-stack-work-${{ hashFiles('hledger-ui/package.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-hledger-ui-stack-work
|
||||||
|
|
||||||
- name: Cache hledger-web/.stack-work
|
- name: Cache hledger-web/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger-web/.stack-work
|
path: hledger-web/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-web-stack-work
|
key: ${{ runner.os }}-hledger-web-stack-work-${{ hashFiles('hledger-web/package.yaml') }}
|
||||||
|
restore-keys: ${{ runner.os }}-hledger-web-stack-work
|
||||||
|
|
||||||
# actions
|
# actions
|
||||||
|
|
||||||
- name: Check out
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install stack
|
- name: Install stack
|
||||||
# curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack'
|
# curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack'
|
||||||
# mkdir -p ~/.local/bin
|
# mkdir -p ~/.local/bin
|
||||||
@ -83,31 +100,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Install GHC
|
- name: Install GHC
|
||||||
run: |
|
run: |
|
||||||
stack --resolver=lts setup
|
stack setup --install-ghc
|
||||||
|
|
||||||
|
- name: Install haskell deps
|
||||||
|
run: |
|
||||||
|
stack build --only-dependencies
|
||||||
|
|
||||||
|
- name: Build hledger fast
|
||||||
|
run: |
|
||||||
|
stack build --fast --pedantic
|
||||||
|
# --ghc-options=-Werror
|
||||||
|
|
||||||
- name: Install shelltestrunner
|
- name: Install shelltestrunner
|
||||||
run: |
|
run: |
|
||||||
export PATH=~/.local/bin:$PATH
|
export PATH=~/.local/bin:$PATH
|
||||||
if [[ ! -x ~/.local/bin/shelltest ]]; then stack --resolver=lts install shelltestrunner-1.9; fi
|
if [[ ! -x ~/.local/bin/shelltest ]]; then stack install shelltestrunner-1.9; fi
|
||||||
shelltest --version
|
shelltest --version
|
||||||
|
|
||||||
- name: Install haskell deps
|
- name: Test functional tests (excluding addons)
|
||||||
run: |
|
run: |
|
||||||
stack --resolver=lts build --only-dependencies
|
COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons
|
||||||
# --no-terminal
|
|
||||||
|
|
||||||
- name: Build hledger fast
|
|
||||||
run: |
|
|
||||||
stack --resolver=lts build --fast --ghc-options=-Werror
|
|
||||||
# --no-terminal
|
|
||||||
|
|
||||||
- name: Unit & functional tests (excluding addons)
|
|
||||||
run: |
|
|
||||||
export PATH=~/.local/bin:$PATH
|
|
||||||
COLUMNS=80 stack --resolver=lts exec -- shelltest --execdir -j16 tests -x /bin -x /addons
|
|
||||||
|
|
||||||
# - name: Configure
|
|
||||||
# if: startsWith(matrix.name, 'linux')
|
|
||||||
# run: |
|
|
||||||
# export PATH=/usr/local/bin:$PATH
|
|
||||||
# cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug ...
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user