Skip to content

Commit

Permalink
Merge pull request #3 from cnblogs/add-test-job
Browse files Browse the repository at this point in the history
ci: add test job
  • Loading branch information
ikesnowy authored Feb 5, 2023
2 parents c1caf63 + e385e81 commit d393e7d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:7.0

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: ./build.sh
- name: Test
run: ./test.sh

3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
dotnet restore
dotnet build -c Release
2 changes: 2 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
dotnet test -c Release

0 comments on commit d393e7d

Please sign in to comment.