-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into releases/v1
- Loading branch information
Showing
11 changed files
with
3,570 additions
and
4,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,64 @@ | ||
name: "dry-run (universal)" | ||
name: "run-releases-branch-remote" | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: | ||
- 'releases/**' | ||
pull_request: | ||
branches: | ||
- "releases/v1" | ||
tags-ignore: | ||
- "**" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
dryrun: | ||
run: | ||
strategy: | ||
max-parallel: 2 # to avoid discord webhook's rate limit | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- ubuntu-22.04 | ||
- ubuntu-20.04 | ||
- ubuntu-18.04 | ||
- macos-latest | ||
- macos-11 | ||
- macos-10.15 | ||
- windows-latest | ||
- windows-2022 | ||
- windows-2019 | ||
- macos-latest | ||
- macos-12 | ||
- macos-11 | ||
|
||
runs-on: ${{ matrix.os }} | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_VERBOSE }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
- name: run simple | ||
# do not reference as local action! (runs: ./) | ||
uses: sarisia/actions-status-discord@releases/v1 | ||
|
||
- name: run full | ||
uses: sarisia/actions-status-discord@releases/v1 | ||
with: | ||
node-version: '12.x' | ||
- name: build | ||
run: npm run release | ||
- name: run | ||
uses: ./ | ||
status: Failure | ||
title: "${{ github.workflow }} - ${{ matrix.os }} - must failure" | ||
description: "testing `releases/v1` branch" | ||
nofail: false | ||
nodetail: false | ||
image: "https://user-images.githubusercontent.com/33576079/81886735-69e03f80-95d8-11ea-8828-fa10dda8afd1.png" | ||
color: 0xFFFFFF | ||
username: GitHub Actions | ||
avatar_url: ${{ secrets.AVATAR_URL }} | ||
|
||
- name: run nodetail | ||
uses: sarisia/actions-status-discord@releases/v1 | ||
with: | ||
title: dry run (${{ matrix.os }}) | ||
status: Cancelled | ||
title: "${{ github.workflow }} - ${{ matrix.os }} - no details" | ||
nodetail: true | ||
nofail: false | ||
|
||
conclusion: | ||
runs-on: ubuntu-latest | ||
needs: dryrun | ||
needs: run | ||
if: always() | ||
steps: | ||
- uses: actions/github-script@v3 | ||
|
@@ -58,6 +77,7 @@ jobs: | |
return jobs.filter(job => job.conclusion !== null && job.conclusion !== "success") | ||
.length > 0 ? 'failure' : 'success' | ||
- uses: sarisia/actions-status-discord@v1 | ||
if: always() | ||
with: | ||
webhook: ${{ secrets.DISCORD_WEBHOOK }} | ||
status: ${{ steps.ghapi.outputs.result }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,26 @@ on: | |
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
|
||
- uses: devcontainers/[email protected] | ||
with: | ||
node-version: '12.x' | ||
- run: npm ci | ||
- run: npm test | ||
- run: npm run release | ||
imageName: ghcr.io/${{ github.repository }}/devcontainers-ci | ||
refFilterForPush: refs/heads/main | ||
runCmd: | | ||
npm ci | ||
npm test | ||
npm run release | ||
- uses: sarisia/actions-status-discord@v1 | ||
if: always() | ||
with: | ||
|
Oops, something went wrong.