Refactor: Split up the GitHub actions. Add badges #3
Workflow file for this run
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: Lint | |
defaults: | |
run: | |
shell: bash | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
lint-markdown: | |
name: "🧹 Markdown" | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛒 Checkout Code | |
uses: actions/checkout@v3 | |
- name: 📦 Install Node.js and npm | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.0.0' | |
- name: 📚 Install markdownlint-cli | |
run: npm install -g markdownlint-cli | |
- name: 🖊️ Run markdownlint | |
run: find . -name '*.md' -exec markdownlint {} + | |
lint_go: | |
name: "️️🕵️ Golang" | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛒 Checkout Code | |
uses: actions/checkout@v3 | |
- name: 🚀 Set up Go | |
uses: actions/[email protected] | |
with: | |
go-version: '1.21.4' | |
cache: true | |
check-latest: true | |
- name: 🕵️♂️ Run GolangCI-Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54 |