[RSDK-9965] discover resources using extra #248
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: Linter, static checks, unit tests | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**/**.go' | |
pull_request: | |
paths: | |
- '**/**.go' | |
- 'Makefile' | |
- '.github/workflows/quality-checks.yml' | |
jobs: | |
quality-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo add-apt-repository universe && sudo apt-get install -y libfuse2 | |
- name: Check gofmt | |
run: | | |
if [ -n "$(gofmt -d .)" ]; then | |
echo "gofmt is unhappy with your code quality!! Please run 'make lint' and commit the changes." | |
exit 1 | |
fi | |
- name: Run linter and static checks | |
run: make lint | |
- name: Run unit tests | |
run: make test |