mirror of
https://github.com/lunchcat/sif.git
synced 2025-12-05 20:40:08 -08:00
actions<breaking>: remove PR-specific actions
(needs to be fixed)
This commit is contained in:
36
.github/workflows/memes.yml
vendored
36
.github/workflows/memes.yml
vendored
@@ -1,36 +0,0 @@
|
||||
name: Memer Workflow
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
greeting:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Run Memer Action
|
||||
id: memer
|
||||
|
||||
uses: Bhupesh-V/memer-action@master
|
||||
with:
|
||||
filter: "new"
|
||||
|
||||
- name: Check Outputs
|
||||
run: |
|
||||
echo "${{ steps.memer.outputs.meme }}"
|
||||
echo "${{ steps.memer.outputs.title }}"
|
||||
echo "${{ steps.memer.outputs.source }}"
|
||||
|
||||
- name: Create comment
|
||||
uses: peter-evans/create-or-update-comment@v1.3.0
|
||||
id: couc
|
||||
with:
|
||||
issue-number: ${{ github.event.number }}
|
||||
body: |
|
||||
🎉🎉 Thanks for opening this PR/Issue
|
||||
Please wait while the maintainer(s) review it
|
||||
|
||||
Meanwhile have a look at this:
|
||||
|
||||
> **${{ steps.memer.outputs.title }}**
|
||||

|
||||
<sub>ℹ️ <a href="${{ steps.memer.outputs.source }}">Source</a> [ Powered By 🔥 <a href="https://github.com/Bhupesh-V/memer-action">Memer Action</a> ]</sub>
|
||||
71
.github/workflows/reviewdog.yml
vendored
71
.github/workflows/reviewdog.yml
vendored
@@ -1,71 +0,0 @@
|
||||
name: reviewdog
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
# NOTE: golangci-lint doesn't report multiple errors on the same line from
|
||||
# different linters and just report one of the errors?
|
||||
|
||||
golangci-lint:
|
||||
name: runner / golangci-lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: golangci-lint
|
||||
uses: reviewdog/action-golangci-lint@v2
|
||||
with:
|
||||
# optionally use a specific version of Go rather than the latest one
|
||||
go_version: "1.17"
|
||||
|
||||
# Can pass --config flag to change golangci-lint behavior and target
|
||||
# directory.
|
||||
golangci_lint_flags: "--config=.github/.golangci.yml ./testdata"
|
||||
workdir: subdirectory/
|
||||
|
||||
# Use golint via golangci-lint binary with "warning" level.
|
||||
golint:
|
||||
name: runner / golint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: golint
|
||||
uses: reviewdog/action-golangci-lint@v2
|
||||
with:
|
||||
golangci_lint_flags: "--disable-all -E golint"
|
||||
tool_name: golint # Change reporter name.
|
||||
level: warning # GitHub Status Check won't become failure with this level.
|
||||
|
||||
# You can add more and more supported linters with different config.
|
||||
errcheck:
|
||||
name: runner / errcheck
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: errcheck
|
||||
uses: reviewdog/action-golangci-lint@v2
|
||||
with:
|
||||
golangci_lint_flags: "--disable-all -E errcheck"
|
||||
tool_name: errcheck
|
||||
level: info
|
||||
|
||||
# Disable cache of golangci-lint result, go build and go dependencies
|
||||
with_cache:
|
||||
name: runner / errcheck
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: golangci-lint
|
||||
uses: reviewdog/action-golangci-lint@v2
|
||||
with:
|
||||
cache: false
|
||||
Reference in New Issue
Block a user