-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (66 loc) · 2.07 KB
/
test.yml
File metadata and controls
76 lines (66 loc) · 2.07 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build Plugins
on:
push:
workflow_dispatch:
# inputs:
# run_build:
# description: "Run build"
# required: true
# type: boolean
# run_actionlint:
# description: "Run actionlint"
# required: true
# type: boolean
jobs:
# changes:
# runs-on: ubuntu-latest
# name: Gather changed files
# outputs:
# run_build: ${{ steps.changes.outputs.run_build }}
# run_actionlint: ${{ steps.changes.outputs.run_actionlint }}
# steps:
# - uses: actions/checkout@v3
# name: Checkout code from the repo
# - name: Get changed files
# uses: dorny/paths-filter@v2
# id: changes
# with:
# filters: |
# run_build:
# - 'src/**'
# run_actionlint:
# - '.github/workflows/**'
build:
name: Build
runs-on: ubuntu-latest
# needs: changes
# if: ${{ (needs.changes.outputs.run_build == 'true' && !inputs.run_build) || inputs.run_build }}
steps:
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.x"
- name: Clone
uses: actions/checkout@v2
- name: Build
run: dotnet publish -c Release src/Artemis.Plugins.Modules.Chrome.sln
- name: Upload
uses: actions/upload-artifact@v3
with:
name: Artemis.Plugins.Modules.Chrome
path: src/Artemis.Plugins.Modules.Chrome/bin/Release/net7.0/publish
if-no-files-found: error
actionlint:
name: Check workflow files
# needs: changes
runs-on: ubuntu-latest
# if: ${{ (needs.changes.outputs.run_actionlint == 'true' && !inputs.run_actionlint) || (inputs.run_actionlint) }}
steps:
- uses: actions/checkout@v3
name: Checkout code from the repo
- name: Download actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.21
shell: bash
- name: Check workflow files
run: ./actionlint -color
shell: bash