mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
# This ensures that previous jobs for the workflow are canceled when the ref is
|
|
# updated.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
# Full git history is needed to get a proper list of changed files within `super-linter`
|
|
fetch-depth: 0
|
|
|
|
- name: Lint Code Base
|
|
uses: github/super-linter/slim@v4
|
|
env:
|
|
DEFAULT_BRANCH: dev
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
SUPPRESS_POSSUM: true
|
|
LINTER_RULES_PATH: /
|
|
VALIDATE_ALL_CODEBASE: false
|
|
VALIDATE_DOCKERFILE: false
|
|
VALIDATE_JSCPD: true
|
|
FILTER_REGEX_EXCLUDE: (.*/)?(configuration/.*)
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
name: Runs plugin tests
|
|
needs: run-lint
|
|
steps:
|
|
- id: git-checkout
|
|
name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- id: docker-test
|
|
name: Test the image
|
|
run: ./test.sh snapshot
|