Skip to content

Commit d1f983f

Browse files
authored
Merge pull request #15 from null-d3v/devcontainer-ci
devcontainer ci
2 parents 7fadb54 + b8e1d07 commit d1f983f

File tree

2 files changed

+12
-29
lines changed

2 files changed

+12
-29
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,10 @@ on: push
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
env:
9-
L1L2RedisCache__Configuration: localhost
10-
services:
11-
redis:
12-
image: redis
13-
ports:
14-
- 6379:6379
158
steps:
169
- uses: actions/checkout@v4
17-
- name: Setup
18-
uses: actions/setup-dotnet@v4
19-
with:
20-
dotnet-version: 8
21-
- name: Build
22-
run: dotnet build -c Release
2310
- name: Test
24-
run: dotnet test
11+
uses: devcontainers/[email protected]
12+
with:
13+
push: never
14+
runCmd: dotnet test

.github/workflows/publish.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,17 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11-
env:
12-
L1L2RedisCache__Configuration: localhost
13-
services:
14-
redis:
15-
image: redis
16-
ports:
17-
- 6379:6379
1811
steps:
1912
- uses: actions/checkout@v4
2013
- name: Version
2114
run: echo "VERSION=${GITHUB_REF:10}+${GITHUB_SHA::8}" >> $GITHUB_ENV
22-
- name: Setup
23-
uses: actions/setup-dotnet@v4
24-
with:
25-
dotnet-version: 8
26-
- name: Build
27-
run: dotnet build -c Release
2815
- name: Test
29-
run: dotnet test
16+
uses: devcontainers/[email protected]
17+
with:
18+
push: never
19+
runCmd: dotnet test
3020
- name: Publish
31-
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json --skip-duplicate
21+
uses: devcontainers/[email protected]
22+
with:
23+
push: never
24+
runCmd: dotnet build -c Release && dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -n -s https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)