-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.32 KB
/
tests.yml
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
39
40
41
42
43
44
name: Tests
on:
push:
branches: [ main ]
paths:
- 'dist/*.js'
- '.github/workflows/tests.yml'
pull_request:
branches: [ main ]
jobs:
test-gh-registry:
name: Test GitHub Registry
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
- name: Generate action code
if: ${{ github.event_name == 'pull_request' }}
uses: ./.github/actions/generate-action-code
- uses: sersoft-gmbh/dotnet-nuget-login-action@main
if: ${{ github.event_name == 'push' }}
id: main-action
with:
registry-url: 'https://nuget.pkg.github.com/sersoft-gmbh/index.json'
registry-name: github
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
store-password-in-cleartext: true
- uses: './'
if: ${{ github.event_name == 'pull_request' }}
id: local-action
with:
registry-url: 'https://nuget.pkg.github.com/sersoft-gmbh/index.json'
registry-name: github
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
store-password-in-cleartext: true