-
-
Notifications
You must be signed in to change notification settings - Fork 21
37 lines (33 loc) · 999 Bytes
/
test.yml
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
name: "test"
on:
workflow_dispatch:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: build
uses: devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8
with:
imageName: ghcr.io/${{ github.repository }}/devcontainer
cacheFrom: ghcr.io/${{ github.repository }}/devcontainer
push: never
runCmd: |
npm ci
npm test
npm run build
- name: report result
uses: sarisia/actions-status-discord@448a59224349c2bf9611e68b88787f2b0011965f
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}