Skip to content

Commit

Permalink
ci: change ci
Browse files Browse the repository at this point in the history
  • Loading branch information
light-speak committed Oct 30, 2024
1 parent 32f7eb8 commit d17ef19
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ name: CI
on:
push:
branches:
- main
- staging
tags:
- 'v*'
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
- staging

jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -34,6 +33,7 @@ jobs:
if: success()

lint:
if: github.event_name != 'pull_request' || github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -44,6 +44,7 @@ jobs:
version: latest

security:
if: github.event_name != 'pull_request' || github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -52,12 +53,13 @@ jobs:
uses: snyk/actions/golang@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
if: github.event.pull_request.head.repo.full_name == github.repository

- name: Run CodeQL Analysis
uses: github/codeql-action/analyze@v2

sonarcloud:
if: github.event_name != 'pull_request' || github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit d17ef19

Please sign in to comment.