Skip to content

feat(fe): add warning for 'x==y;' statement #6754

feat(fe): add warning for 'x==y;' statement

feat(fe): add warning for 'x==y;' statement #6754

# Copyright (C) 2020 Matthew Glazar
# See end of file for extended copyright information.
name: build test dev env nix
on:
push:
pull_request:
types: [opened, synchronize]
jobs:
build:
name: build and test dev env nix
runs-on: ubuntu-latest
# TODO(strager): Use a stable Docker image.
steps:
- name: checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: install nix
uses: quick-lint/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
# We can't split this up into multiple actions because
# nix-shell is quit after the action is done. We want
# all commands be executed in the context of the shell.
- name: configure, build, test, and run in nix-shell
run: >
nix-shell dist/nix/shell.nix --command
"cmakeConfigurePhase &&
ninjaBuildPhase &&
./test/quick-lint-js-test &&
./quick-lint-js --help"
- name: run executable without nix-shell
run: ./build/quick-lint-js --help
# quick-lint-js finds bugs in JavaScript programs.
# Copyright (C) 2020 Matthew Glazar
#
# This file is part of quick-lint-js.
#
# quick-lint-js is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# quick-lint-js is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with quick-lint-js. If not, see <https://www.gnu.org/licenses/>.