This repository was archived by the owner on Apr 23, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.21 KB
/
test-template.yml
File metadata and controls
38 lines (36 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
on:
push:
paths:
- ".github/workflows/test-template.yml"
- "src/**"
- "tools/replace-variables.sh"
- "@RepositoryName.sln"
workflow_dispatch:
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
jobs:
test-commit:
name: Test Commit ${{ github.sha }}
runs-on: ubuntu-latest
if: "!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]') && github.event.repository.name == 'DSharpPlus.Template'"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Replace Variables
run: tools/replace-variables.sh "${{ github.repository }}" "${{ github.event.repository.description }}"
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-${{ github.sha }}.zip
path: ${{ github.workspace }}
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8
- name: Build Project
run: dotnet build
- name: Build Dockerfile
run: docker build -t dsharpplus-template:latest .