Skip to content

Commit da8d1ec

Browse files
authored
ci: Move build to actions (#8)
* ci: Move build to actions * ci: rename step * ci: update slash * ci: remove appveyor config
1 parent dc03671 commit da8d1ec

File tree

4 files changed

+96
-44
lines changed

4 files changed

+96
-44
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
# Maintain dependencies for GitHub Actions
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"

.github/workflows/deploy.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
name: Test
15+
runs-on: windows-2019
16+
steps:
17+
- name: Check out code
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Run tests
23+
shell: pwsh
24+
run: |
25+
Test-ModuleManifest -Path .\PSF.psd1 -Verbose -ErrorAction Stop
26+
.\.ExecuteTests.ps1
27+
28+
# - name: Copy files to staging directory
29+
# shell: pwsh
30+
# run: |
31+
# $DestPath = "C:\Users\appveyor\Documents\WindowsPowerShell\Modules\PSF\"
32+
# New-Item -Path $DestPath -Type Directory -Force
33+
# Copy-Item .\PSF.ps* $DestPath
34+
# Copy-Item .\functions $DestPath -Recurse
35+
36+
deploy:
37+
name: Tag and Deploy
38+
runs-on: windows-2019
39+
needs: [test]
40+
if: contains(github.ref, 'master')
41+
steps:
42+
- name: Check out code
43+
uses: actions/checkout@v2
44+
with:
45+
fetch-depth: 0
46+
47+
- name: Install GitVersion
48+
uses: gittools/actions/gitversion/setup@v0.9.9
49+
with:
50+
versionSpec: "5.5.x"
51+
52+
- name: Version with GitVersion # https://github.com/marketplace/actions/use-actions
53+
id: gitversion
54+
uses: gittools/actions/gitversion/execute@v0.9.9
55+
56+
- name: Push version tag
57+
uses: tvdias/github-tagger@v0.0.2
58+
continue-on-error: true
59+
with:
60+
repo-token: ${{ secrets.GITHUB_TOKEN }}
61+
tag: ${{ steps.gitversion.outputs.FullSemVer }}
62+
63+
- name: Update module manifest
64+
shell: pwsh
65+
run: |
66+
Update-ModuleManifest -Path .\PSF.psd1 -ModuleVersion ${{ steps.gitversion.outputs.MajorMinorPatch }}
67+
68+
- name: Publish to gallery
69+
env:
70+
NUGET_KEY: ${{ secrets.NUGET_KEY }}
71+
shell: pwsh
72+
run: |
73+
Publish-Module -Path . -NuGetApiKey $env:NUGET_KEY -Verbose

GitVersion.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
assembly-versioning-scheme: MajorMinorPatchTag
1+
assembly-versioning-scheme: MajorMinorPatch
22
mode: Mainline
3-
major-version-bump-message: '\+semver:\s?(breaking|major)'
4-
minor-version-bump-message: '\+semver:\s?(feature|minor)'
5-
patch-version-bump-message: '\+semver:\s?(fix|patch)'
6-
no-bump-message: '\+semver:\s?(none|skip)'
7-
branches: {}
3+
branches:
4+
master:
5+
regex: ^master
6+
increment: Minor
7+
increment: Minor
88
ignore:
99
sha: []
10-
increment: Inherit
10+
merge-message-formats: {}
11+
major-version-bump-message: (BREAKING CHANGES?|major)(\(.*?\))?:\s?
12+
minor-version-bump-message: (feature|minor|feat)(\(.*?\))?:\s?
13+
patch-version-bump-message: (fix|patch|hotfix)(\(.*?\))?:\s?
14+
no-bump-message: (build|chore|ci|doc|docs|none|perf|refactor|skip|test)(\(.*?\))?:\s?

appveyor.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)