Skip to content

Add serverless verify to github action #9

Add serverless verify to github action

Add serverless verify to github action #9

name: Serverless verify
on:
push:
branches: [ "main", "release-*" ]
pull_request:
paths-ignore:
- 'docs/**'
- 'examples/**'
types:
- opened
- reopened
- synchronize
- ready_for_review
- converted_to_draft
jobs:
#pre-serverless-controller-lint
serverless-lint:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update && sudo apt-get install --no-install-recommends --yes libgit2-dev
- uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: 'components/serverless'
#pre-serverless-controller-unit-test
serverless-unit-tests:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install --no-install-recommends --yes libgit2-dev
- name: run test
run: make -C components/serverless test