diff --git a/.github/workflows/build_and_test_debug_client.yml b/.github/workflows/build_and_test_debug_client.yml index f7c5ce58f0..9fbcf9e817 100644 --- a/.github/workflows/build_and_test_debug_client.yml +++ b/.github/workflows/build_and_test_debug_client.yml @@ -33,9 +33,6 @@ jobs: - name: Install NPM Dependencies run: npm set cache .npm && npm ci - - name: Run Linter - run: npm run action lint - - name: Build Web App run: npm run action client/src/www/build @@ -133,7 +130,7 @@ jobs: - name: Build Tun2Socks (required for Test OutlineAppleLib) run: npm run action client/src/tun2socks/build macos - + - name: Test OutlineAppleLib run: npm run action client/src/cordova/test macos @@ -174,7 +171,7 @@ jobs: go-version-file: '${{ github.workspace }}/go.mod' - name: Build Tun2Socks (required for Test OutlineAppleLib) - run: npm run action client/src/tun2socks/build ios + run: npm run action client/src/tun2socks/build ios - name: Test OutlineAppleLib run: npm run action client/src/cordova/test ios diff --git a/.github/workflows/build_and_test_debug_manager.yml b/.github/workflows/build_and_test_debug_manager.yml index dd5f8401cf..6da685f5a9 100644 --- a/.github/workflows/build_and_test_debug_manager.yml +++ b/.github/workflows/build_and_test_debug_manager.yml @@ -14,30 +14,9 @@ on: - master jobs: - lint: - name: Lint - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2.3.4 - - - name: Install Node - uses: actions/setup-node@v3 - with: - node-version-file: .nvmrc - cache: npm - cache-dependency-path: ./server_manager/package.json - - - name: Install NPM Dependencies - run: npm ci - - - name: Lint - run: npm run lint - web_test: name: Web Test runs-on: ubuntu-latest - needs: lint steps: - name: Checkout uses: actions/checkout@v2.3.4 @@ -54,7 +33,7 @@ jobs: - name: Manager Web Test run: npm run action server_manager/test - + linux_debug_build: name: Linux Debug Build runs-on: ubuntu-latest @@ -101,7 +80,7 @@ jobs: - name: Build Windows Manager run: npm run action server_manager/electron_app/build windows - + mac_debug_build: name: MacOS Debug Build runs-on: macos-11 @@ -121,7 +100,7 @@ jobs: - name: Install NPM Dependencies run: npm ci - + - name: Set XCode Version run: sudo xcode-select -switch /Applications/Xcode_13.2.app diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..8e8abb278b --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,35 @@ +name: Lint + +concurrency: + group: ${{ github.head_ref || github.ref }} + cancel-in-progress: true + +on: + pull_request: + types: + - opened + - synchronize + push: + branches: + - master + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.3.4 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version-file: .nvmrc + cache: npm + cache-dependency-path: ./server_manager/package.json + + - name: Install NPM Dependencies + run: npm ci + + - name: Lint + run: npm run lint