Skip to content

Commit

Permalink
Merge pull request #176 from ctreminiom/feature/ci-refactor
Browse files Browse the repository at this point in the history
👷 Github Action Edited.
  • Loading branch information
ctreminiom authored Mar 11, 2023
2 parents f2c043a + a924e07 commit 5f7242c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Reqest, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v1
9 changes: 4 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
name: Lint
on:
push:
tags:
- v*
branches:
- master
- main
- feature/*
pull_request:
branches: [ main ]
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
strategy:
max-parallel: 6
matrix:
go: [1.17, 1.18, 1.19]
os: [macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
name: lint
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -29,7 +28,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.49
version: v1.51.2
# Optional: working directory, useful for monorepos
# working-directory: somedir

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:

test:
strategy:
max-parallel: 3
max-parallel: 6
matrix:
go-version: [1.16.x, 1.17.x, 1.18.x]
go-version: [1.17, 1.18, 1.19]
platform: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.platform }}
Expand Down

0 comments on commit 5f7242c

Please sign in to comment.