Chore: Refactor code for cuex #258
Workflow file for this run
This file contains hidden or 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: Static Check | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
workflow_dispatch: {} | |
pull_request: | |
branches: | |
- main | |
- release-* | |
env: | |
# Common versions | |
GO_VERSION: '1.23.8' | |
jobs: | |
detect-noop: | |
runs-on: ubuntu-22.04 | |
outputs: | |
noop: ${{ steps.noop.outputs.should_skip }} | |
steps: | |
- name: Detect No-op Changes | |
id: noop | |
uses: fkirc/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]' | |
do_not_skip: '["workflow_dispatch", "schedule", "push"]' | |
concurrent_skipping: false | |
check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@6ccd57f4c5d15bdc2fef309bd9fb6cc9db2ef1c6 | |
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- name: Set up Go | |
id: go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install Yarn | |
run: npm install --global yarn | |
- name: Upgrade Yarn | |
run: yarn set version 3.6.0 | |
- name: Yarn Install | |
run: yarn install | |
- name: Lint Frontend Code | |
run: yarn lint | |
- name: Check Frontend Code Style | |
run: yarn lint | |
- name: Test Frontend | |
run: yarn test | |
- name: Check Server Code Style | |
run: make check-diff |