refactor(ci): Remove most of the CI jobs #3
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: Dev | |
'on': | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
build-local: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.21.0' | |
- name: Setup nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
cache-dependency-path: web/package-lock.json | |
- name: Install go-task | |
run: | | |
go install github.com/go-task/task/v3/cmd/task@latest | |
- name: Install deps | |
run: | | |
task deps | |
- name: Run build | |
run: task build | |
- name: Check modification | |
run: | | |
git diff --exit-code --stat -- . ':(exclude)web/package.json' ':(exclude)web/package-lock.json' ':(exclude)go.mod' ':(exclude)go.sum' | |
- name: Run tests | |
run: task test |