From 0b718daa47a957f90066859ab96a3ca6f9253575 Mon Sep 17 00:00:00 2001 From: Sky Leite Date: Sat, 4 Feb 2023 00:40:29 -0300 Subject: Add lint job to build workflow (#363) * Add lint job to build workflow * Add prettier-plugin-import-sort * Install prettier plugins before linting * Use lint script from package.json * Move linters to separate workflow * Remove Python and Shell linters * Remove popd * Test that prettier properly fails the lint job --- .github/workflows/lint.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/lint.yml (limited to '.github') diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..1d9444f6 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Lint + +on: + push: + +jobs: + lint: + name: Run linters + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 # Check out the repository first. + - name: Run prettier (JavaScript & TypeScript) + run: | + pushd frontend + npm install + npm run lint -- cgit v1.2.3