Skip to content

add macos-13 as test target #338

add macos-13 as test target

add macos-13 as test target #338

Workflow file for this run

name: "test"
on:
workflow_dispatch:
push:
pull_request:
merge_group:
jobs:
test-unit:
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: build
uses: devcontainers/ci@72700878095f87b851a6c4405a16056caffdc577
with:
imageName: ghcr.io/${{ github.repository }}/devcontainer
cacheFrom: ghcr.io/${{ github.repository }}/devcontainer
push: never
runCmd: |
npm ci
npm test
test-run:
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: build
uses: devcontainers/ci@72700878095f87b851a6c4405a16056caffdc577
with:
imageName: ghcr.io/${{ github.repository }}/devcontainer
cacheFrom: ghcr.io/${{ github.repository }}/devcontainer
push: never
runCmd: |
npm ci
npm run build
- name: run-1 (send real Discord message!)
uses: ./
with:
content: "hey <@316911818725392384>"
title: "Test running"
description: "testing commit `${{ github.sha }}`"
nofail: false
image: "https://user-images.githubusercontent.com/33576079/81886735-69e03f80-95d8-11ea-8828-fa10dda8afd1.png"
color: 0xFFFFFF
username: GitHub Actions
- name: run-2 (send real Discord message!)
# do not reference as local action! (runs: ./)
uses: ./
with:
nofail: false
- name: run-3 (send real Discord message!)
uses: ./
with:
status: Cancelled
title: "test no details"
nodetail: true
nofail: false
conclude:
runs-on: ubuntu-latest
needs:
- test-unit
- test-run
if: always()
permissions:
actions: read
steps:
- uses: sarisia/actions/conclusion@main
id: ghapi
- name: report result
uses: sarisia/actions-status-discord@61114b793b460ee85fe38ad3fccc78c7ead38d55
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ steps.ghapi.outputs.conclusion }}
title: ${{ github.workflow }} - conclusion