mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
update ci script for people without docker
This commit is contained in:
15
.github/workflows/dotnet.yml
vendored
15
.github/workflows/dotnet.yml
vendored
@@ -27,11 +27,22 @@ jobs:
|
||||
- name: dotnet test
|
||||
run: dotnet test --no-build --verbosity normal Tests/Tests.csproj
|
||||
|
||||
ConfigTest:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
docker-username: ${{ steps.docker-username.outputs.defined }}
|
||||
steps:
|
||||
- id: docker-username
|
||||
env:
|
||||
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
if: "${{ env.DOCKER_USERNAME }}"
|
||||
run: echo "::set-output name=defined::true"
|
||||
|
||||
DockerImage:
|
||||
needs: BuildAndTest
|
||||
needs: [BuildAndTest, ConfigTest]
|
||||
runs-on: ubuntu-latest
|
||||
name: "Build Docker image"
|
||||
if: github.ref == 'refs/heads/master'
|
||||
if: (github.ref == 'refs/heads/master') && (needs.ConfigTest.outputs.docker-username == 'true')
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
||||
@@ -22,7 +22,6 @@ EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AD87F38F-BFCE-4EA6-A430-20C497552FD7}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.cirrus.yml = .cirrus.yml
|
||||
azure-pipelines.yml = azure-pipelines.yml
|
||||
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
|
||||
CONTRIBUTING.md = CONTRIBUTING.md
|
||||
docker-compose.example.yml = docker-compose.example.yml
|
||||
@@ -30,6 +29,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
||||
nuget.config = nuget.config
|
||||
README.md = README.md
|
||||
SECURITY.md = SECURITY.md
|
||||
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OneDriveClient", "Clients\OneDriveClient\OneDriveClient.csproj", "{5C4BCF33-2EC6-455F-B026-8A0001B7B7AD}"
|
||||
|
||||
Reference in New Issue
Block a user