This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
host fix #211
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: run-project-lints | |
on: [push] | |
jobs: | |
lint-frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 16 | |
- name: clean cache | |
run: npm cache clean --force | |
- name: Install deps | |
working-directory: ./frontend | |
run: npm ci | |
- name: Lint Code Base | |
uses: super-linter/super-linter@v5 | |
env: | |
VALIDATE_ALL_CODEBASE: false | |
DEFAULT_BRANCH: main | |
test-backend: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
cache-dependency-path: backend/go.sum | |
go-version-file: backend/go.mod | |
- name: Run Tests | |
working-directory: ./backend | |
run: go test | |
build-frontend: | |
runs-on: ubuntu-latest | |
needs: [lint-frontend] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 16 | |
- name: clean cache | |
run: npm cache clean --force | |
- name: Install deps | |
working-directory: ./frontend | |
run: npm ci | |