From 6fc6907d145918eaf5a7a614e28be66a1ad781cc Mon Sep 17 00:00:00 2001 From: LF4063 <84324632+LF4063@users.noreply.github.com> Date: Sat, 1 Jan 2022 09:17:29 +0800 Subject: [PATCH 1/3] Create launch.json --- .vscode/launch.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..67b7f657 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,30 @@ +{ + "configurations": [ + { + "name": "Cloud Run: Run/Debug Locally", + "type": "cloudcode.cloudrun", + "request": "launch", + "build": { + "buildpacks": { + "path": "source/Funbit.Ets.Telemetry.Server/Funbit.Ets.Telemetry.Server.csproj", + "builder": "gcr.io/buildpacks/builder:v1" + } + }, + "image": "ets2-telemetry-server", + "service": { + "name": "ets2-telemetry-server", + "containerPort": 8080, + "resources": { + "limits": { + "memory": "256Mi" + } + } + }, + "target": { + "minikube": {} + }, + "watch": true, + "externalPortForward": 3000 + } + ] +} \ No newline at end of file From f3daa54125b774ed6f7eb3257150bc40a95ba6fa Mon Sep 17 00:00:00 2001 From: LF4063 <84324632+LF4063@users.noreply.github.com> Date: Sat, 1 Jan 2022 10:13:40 +0800 Subject: [PATCH 2/3] Create android.yml --- .github/workflows/android.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 00000000..53994f23 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,26 @@ +name: Android CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build From d80de44bad6cd6ca2bcd6747fd38144ee85c61ec Mon Sep 17 00:00:00 2001 From: LF4063 <84324632+LF4063@users.noreply.github.com> Date: Sat, 1 Jan 2022 10:21:18 +0800 Subject: [PATCH 3/3] Create dotnet.yml --- .github/workflows/dotnet.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 00000000..a73cc8bc --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,25 @@ +name: .NET + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal