Remove fold stuff from TokenTypes #45
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: Lint and test glualint | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: glualint | |
extraPullNames: glualint | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Build Nix environment | |
run: | |
cachix watch-exec glualint -- nix print-dev-env --accept-flake-config .#ci > "$HOME/.devenv" | |
- name: Activate Nix environment | |
run: source "$HOME/.devenv" && env >> "$GITHUB_ENV" | |
- run: cabal check | |
- run: cabal-fmt --check --Werror glualint.cabal | |
# Note: This check must run BEFORE the AG files are compiled to Haskell | |
# files. Those files are generated with no regard to fourmolu's style, so | |
# fourmolu would throw errors for them. | |
# TODO: Find a way to properly exclude them. | |
- run: fourmolu --mode check app src tests | |
- name: Generate .hs files from .ag | |
run: ./AGGenerator.sh | |
- run: cabal run linttest | |
- run: cabal run glualint -- test testcase.lua tests | |
- run: cabal run golden |