This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
Bump github.com/slack-go/slack from 0.12.1 to 0.12.2 #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- main | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
bot: ${{ steps.filter.outputs.bot }} | |
charts: ${{ steps.filter.outputs.charts }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
filters: | | |
bot: | |
- 'Dockerfile' | |
- '**/*.go' | |
- 'go.mod' | |
- 'go.sum' | |
- 'TAG' | |
charts: | |
- 'charts/pagerbot/Chart.yaml' | |
- 'charts/pagerbot/**/*' | |
security: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run Gosec Security Scanner | |
uses: securego/gosec@master | |
with: | |
args: ./... | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: changes | |
if: | | |
(needs.changes.outputs.bot == 'true') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: false | |
helm: | |
name: Helm chart | |
runs-on: ubuntu-latest | |
needs: | |
- changes | |
- build | |
if: | | |
(needs.changes.outputs.charts == 'true') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17.6' | |
- name: Lint chart | |
run : helm lint charts/pagerbot/ | |
- name: Run helm-docs | |
run: | | |
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/[email protected] | |
./helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts | |
DIFF=$(git diff ${GITHUB_WORKSPACE}/charts/pagerbot/README.md) | |
if [ ! -z "$DIFF" ]; then | |
echo "Please use helm-docs in your clone, of your fork, of the project, and commit a updated README.md for the chart. | |
fi | |
git diff --exit-code | |
rm -f ./helm-docs |