diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 5e6c70a..0000000 --- a/.drone.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -kind: pipeline -type: docker -name: Build - -steps: -- name: formatter - image: mcr.microsoft.com/powershell:alpine-3.14 - commands: - - pwsh ./Invoke-Formatter.ps1 -exitCodeOnFormat - environment: - # Disable debugging and profiling - COMPlus_EnableDiagnostics: 0 - -- name: formatter-diff - image: mcr.microsoft.com/powershell:alpine-3.14 - commands: - - apk add --no-cache ca-certificates git - - git diff - when: - status: - - failure - -- name: linter - image: mcr.microsoft.com/powershell:alpine-3.14 - commands: - - pwsh ./Invoke-Linter.ps1 -exitCodeOnError - environment: - # Disable debugging and profiling - COMPlus_EnableDiagnostics: 0 - -- name: publish - image: mcr.microsoft.com/dotnet/sdk:6.0-alpine - commands: - - pwsh ./Publish-WebKitDev.ps1 - environment: - NUGET_API_KEY: - from_secret: nuget_api_key - # Disable debugging and profiling - COMPlus_EnableDiagnostics: 0 - when: - event: - - tag - -trigger: - ref: - - refs/heads/master - - refs/tags/** - - refs/pull/** diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..4c68197 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,25 @@ +name: Powershell CI + +on: + push: + branches: [ "main" ] + tags: [ "v*.*.*" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: "0 0 * * 0" + +jobs: + lint: + if: ${{ github.event_name == 'pull_request' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: linter + shell: pwsh + run: ./Invoke-Linter.ps1 -exitCodeOnError + if: always() + - name: formatter + shell: pwsh + run: ./Invoke-Formatter.ps1 -exitCodeOnFormat + if: always()