This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Integrate tetris game #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 1.1 Run Checks on PR | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_call: {} | |
permissions: | |
actions: write | |
checks: write | |
contents: read | |
security-events: write | |
env: | |
CI: true | |
SITE_DIR: site | |
TETRIS_APP_HOST: "127.0.0.1" | |
TETRIS_APP_PORT: "8080" | |
TETRIS_APP_PATH: "github-devsecops-fundamentals" | |
jobs: | |
quality-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.ci.txt | |
npm ci | |
npx playwright install --with-deps chromium | |
- name: Build | |
run: | | |
python -m mkdocs build --clean --strict --verbose --site-dir '${{ env.SITE_DIR }}' | |
- name: Functional test | |
run: | | |
npx playwright test | |
security-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install node dependencies | |
run: npm ci | |
- name: Dependency Review | |
uses: actions/dependency-review-action@v3 | |
with: | |
config-file: >- | |
./.github/dependency-review-config.yml | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: javascript | |
setup-python-dependencies: "false" | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |