Skip to content

Commit

Permalink
Setup EPP pipelines (#21)
Browse files Browse the repository at this point in the history
* Linting action

* Makrdown linting action

* Unit test action
  • Loading branch information
grischperl authored Dec 14, 2023
1 parent 26efa7e commit a2289bb
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/lint-markdown-links.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
name: Lint Markdown Links
run-name: ${{github.event.pull_request.title}}
on: [ pull_request ]

on:
pull_request:
branches:
- "main"
- "release-*"
paths-ignore:
- 'docs/**'
- '**.md'
- 'sec-scanners-config.yaml'

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
- name: Checkout repo
uses: actions/checkout@v4

- name: Validate links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: 'no'
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.mlc.config.json'
folder-path: '.'
max-depth: -1
check-modified-files-only: 'yes'
base-branch: ${{ github.base_ref }}
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Linting

on:
pull_request:
branches:
- "main"
- "release-*"
paths-ignore:
- 'docs/**'
- '**.md'
- 'sec-scanners-config.yaml'

jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Setup go environment
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false

- name: Checkout repo
uses: actions/checkout@v4

- name: Run linting
uses: golangci/golangci-lint-action@v3
with:
version: v1.55
args: --timeout=5m --config=./.golangci.yaml
45 changes: 45 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Unit Tests

env:
KYMA_STABILITY: "unstable"
KYMA: "./hack/kyma"

on:
push:
branches:
- "main"
- "release-*"
paths-ignore:
- 'docs/**'
- '**.md'
- 'sec-scanners-config.yaml'
pull_request:
branches:
- "main"
- "release-*"
paths-ignore:
- 'docs/**'
- '**.md'
- 'sec-scanners-config.yaml'

jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup go environment
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false

- name: Sync go dependencies
run: |
go mod tidy
go mod vendor
- name: Run tests
run: |
make test

0 comments on commit a2289bb

Please sign in to comment.