Skip to content

chore(www): upgrade server-list to Lit #2212

chore(www): upgrade server-list to Lit

chore(www): upgrade server-list to Lit #2212

name: Build and Test
concurrency:
group: ${{ github.head_ref || github.ref }}
cancel-in-progress: true
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- master
# TODO: run go tests
jobs:
web_test:
name: Web Test
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install NPM Dependencies
run: npm ci
- name: Run Linter
run: npm run action lint
- name: Build Web App
run: npm run action www/build
- name: Test Web App
run: npm run action www/test
- uses: codecov/codecov-action@v3
with:
files: ./output/coverage/www/coverage-final.json
flags: unittests, www
linux_debug_build:
name: Linux Debug Build
runs-on: ubuntu-20.04
timeout-minutes: 10
needs: web_test
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install NPM Dependencies
run: npm ci
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Build Linux Client
run: npm run action electron/build linux
windows_debug_build:
name: Windows Debug Build
runs-on: windows-2019
timeout-minutes: 10
needs: web_test
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- name: Checkout
uses: actions/[email protected]
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install NPM Dependencies
run: npm ci
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Build Windows Client
run: npm run action electron/build windows
macos_debug_build:
name: MacOS Debug Build
runs-on: macos-13
timeout-minutes: 20
needs: web_test
steps:
- name: Display XCode
run: xcode-select --print-path
- name: Checkout
uses: actions/[email protected]
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install NPM Dependencies
run: npm ci
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Build Tun2Socks (required for Test OutlineAppleLib)
run: npm run action tun2socks/build macos
- name: Test OutlineAppleLib
run: npm run action cordova/test macos
- name: Build MacOS Client
run: npm run action cordova/build macos
- uses: codecov/codecov-action@v3
with:
xcode: true
xcode_archive_path: ./output/coverage/apple/macos/TestResult.xcresult
flags: unittests, apple, macos
ios_debug_build:
name: iOS Debug Build
runs-on: macos-13
timeout-minutes: 20
needs: web_test
steps:
- name: Display XCode
run: xcode-select --print-path
- name: Checkout
uses: actions/[email protected]
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install NPM Dependencies
run: npm ci
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Build Tun2Socks (required for Test OutlineAppleLib)
run: npm run action tun2socks/build ios
- name: Test OutlineAppleLib
run: npm run action cordova/test ios
- name: Build iOS Client
run: npm run action cordova/build ios
- uses: codecov/codecov-action@v3
with:
xcode: true
xcode_archive_path: ./output/coverage/apple/ios/TestResult.xcresult
flags: unittests, apple, ios
maccatalyst_debug_build:
name: Mac Catalyst Debug Build
runs-on: macos-13
timeout-minutes: 20
needs: web_test
steps:
- name: Display XCode
run: xcode-select --print-path
- name: Checkout
uses: actions/[email protected]
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install NPM Dependencies
run: npm ci
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Build Tun2Socks (required for Test OutlineAppleLib)
run: npm run action tun2socks/build maccatalyst
- name: Test OutlineAppleLib
run: npm run action cordova/test maccatalyst
- name: Build Mac Catalyst Client
run: npm run action cordova/build maccatalyst
- uses: codecov/codecov-action@v3
with:
xcode: true
xcode_archive_path: ./output/coverage/apple/maccatalyst/TestResult.xcresult
flags: unittests, apple, maccatalyst
android_debug_build:
name: Android Debug Build
runs-on: ubuntu-20.04
timeout-minutes: 10
needs: web_test
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install NPM Dependencies
run: npm ci
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Install Java
uses: actions/[email protected]
with:
java-version: 11
- name: Setup Android
run: bash ./tools/build/setup_linux_android.sh
- name: Build Android Client
run: npm run action cordova/build android -- --verbose