Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Lint and Test

Lint and Test #97

Workflow file for this run

name: Lint and Test
on: [ pull_request, workflow_dispatch, create ]
jobs:
lint-go:
name: Lint Golang
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.3
args: --config=.golangci.yml
lint-ui-payment:
name: Lint Payment UI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: npm ci --ignore-scripts
working-directory: ui-payment
- name: ESLint
run: npx eslint src --ext .js,.jsx,.ts,.tsx
working-directory: ui-payment
- name: TS Verify
run: npx tsc --noEmit --skipLibCheck -p ./tsconfig.json
working-directory: ui-payment
lint-ui-dashboard:
name: Lint Dashboard UI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: npm ci --ignore-scripts
working-directory: ui-dashboard
- name: ESLint
run: npx eslint src --ext .js,.jsx,.ts,.tsx
working-directory: ui-dashboard
- name: TS Verify
run: npx tsc --noEmit --skipLibCheck -p ./tsconfig.json
working-directory: ui-dashboard