Skip to content
Merged
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
100 changes: 96 additions & 4 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,100 @@
name: pull_request

on: [pull_request]
on: pull_request

permissions:
contents: read
pull-requests: read

jobs:
pull_request:
uses: MapColonies/shared-workflows/.github/workflows/pull_request.yaml@v2
secrets: inherit
eslint:
name: Run eslint
runs-on: ubuntu-latest
strategy:
matrix:
node: [24.x]
steps:
- name: Check out Git repository
uses: actions/checkout@v7

- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1
with:
node-version: ${{ matrix.node }}

- name: Run linters
uses: wearerequired/lint-action@v3
with:
eslint: true
prettier: true
eslint_extensions: ts
tsc: true

openapi-lint:
name: Run OpenAPI lint Check
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v7

- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1

- name: OpenAPI Lint Checks
run: npm run lint:openapi

helm-lint:
name: Run Helm lint Check
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Helm Lint Checks
uses: MapColonies/shared-workflows/actions/helm-lint@helm-lint-v1

security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

tests:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
node: [24.x]
steps:
- name: Check out Git repository
uses: actions/checkout@v7

- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1
with:
node-version: ${{ matrix.node }}

- name: Run tests
run: npm run test

- uses: actions/upload-artifact@v7
with:
name: Test Reporters Node-${{ matrix.node }}
path: reports/**

build_docker_image:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v7

- name: Build Docker image
uses: docker/build-push-action@v7
with:
push: false
Loading
Loading