Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Jetbrains linters for QA #53

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/qodana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Qodana
on:
pull_request_target:

jobs:
qodana-create-baseline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: refs/heads/main
- name: 'Qodana Scan (PHP)'
uses: JetBrains/[email protected]
with:
args: --linter,jetbrains/qodana-php:2022.2-eap
- name: Store baseline
run: cp ${{ runner.temp }}/qodana/results/qodana.sarif.json /tmp/qodana.sarif.json
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install baseline
run: cp /tmp/qodana.sarif.json ./qodana.sarif.json
- name: 'Qodana Scan (PHP)'
uses: JetBrains/[email protected]
with:
args: --baseline,qodana.sarif.json,--linter,jetbrains/qodana-php:2022.2-eap
18 changes: 18 additions & 0 deletions .github/workflows/syntax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Syntax checks
on:
push:
branches:
- main
- '[0-9]+.[0-9]+'
pull_request:

jobs:
syntax-job:
runs-on: ubuntu-latest
container:
image: domjudge/gitlabci:2.1
steps:
- uses: actions/checkout@v2
- name: Run the syntax checks
run: ./gitlab/syntax.sh

26 changes: 26 additions & 0 deletions .github/workflows/webstandard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "W3C webstandards"

on:
push:

jobs:
w3c:
name: W3C validator
runs-on: ubuntu-latest
strategy:
matrix:
version: ["team", "guest", "admin", "jury"]
permissions:
actions: read
contents: read
security-events: write
env:
DB_DATABASE: domjudge
DB_USER: user
DB_PASSWORD: password
steps:
- uses: actions/checkout@v2

- name: Install DOMjudge
run: .github/workflowscripts/baseinstall.sh ${{ matrix.version }}

File renamed without changes.
13 changes: 13 additions & 0 deletions gitlab/ci/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,20 @@ integration_mysql:
TEST: "Unit"
CRAWL_DATASOURCES: "0"

integration_mariadb_pr:
except:
- main
- /^[0-9].[0-9]$/
extends: [.mariadb_job,.phpsupported_job_pr,.integration_job]
variables:
MYSQL_ROOT_PASSWORD: password
MARIADB_PORT_3306_TCP_ADDR: sqlserver
PIN_JUDGEDAEMON: 1

integration_mariadb:
only:
- main
- /^[0-9].[0-9]$/
extends: [.mariadb_job,.phpsupported_job,.integration_job]
variables:
MYSQL_ROOT_PASSWORD: password
Expand Down