Skip to content
Snippets Groups Projects
Unverified Commit cab3c972 authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Use GitHub Actions to run back-end linters (#14701)

parent 1d1725c7
Branches
Tags
No related merge requests found
......@@ -1006,34 +1006,6 @@ workflows:
skip-when-no-change: true
<<: *Matrix
- lein:
name: be-linter-eastwood
requires:
- be-deps
lein-command: eastwood
skip-when-no-change: true
- lein:
name: be-linter-docstring-checker
requires:
- be-deps
lein-command: docstring-checker
skip-when-no-change: true
- lein:
name: be-linter-namespace-decls
requires:
- be-deps
lein-command: check-namespace-decls
skip-when-no-change: true
- lein:
name: be-linter-bikeshed
requires:
- be-deps
lein-command: bikeshed
skip-when-no-change: true
- lein:
name: be-linter-cloverage
requires:
......@@ -1045,10 +1017,6 @@ workflows:
command: bash <(curl -s https://codecov.io/bash)
skip-when-no-change: true
- be-linter-reflection-warnings:
requires:
- be-deps
- test-driver:
name: be-tests-bigquery-ee
requires:
......
name: Backend
on:
pull_request:
push:
branches:
- master
- 'release**'
- 'feature**'
tags:
- '**'
paths:
- '**.clj'
- '**.edn'
- '**.java'
- '**/metabase-plugin.yaml'
- '.github/workflows/**'
jobs:
be-linter-bikeshed:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Prepare JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Get M2 cache
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-bikeshed-${{ hashFiles('**/project.clj') }}
- run: lein with-profile +ci bikeshed
be-linter-eastwood:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Prepare JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Get M2 cache
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-eastwood-${{ hashFiles('**/project.clj') }}
- run: lein with-profile +ci eastwood
be-linter-docstring-checker:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Prepare JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Get M2 cache
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-docstring-checker-${{ hashFiles('**/project.clj') }}
- run: lein with-profile +ci docstring-checker
be-linter-namespace-decls:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Prepare JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Get M2 cache
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-namespace-decls-${{ hashFiles('**/project.clj') }}
- run: lein with-profile +ci check-namespace-decls
be-linter-reflection-warnings:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Prepare JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Get M2 cache
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-reflection-warnings-${{ hashFiles('**/project.clj') }}
- run: ./bin/reflection-linter
name: Run reflection warnings checker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment