Skip to content

Commit

Permalink
only run unit on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sarisia committed Oct 7, 2023
1 parent 4160d05 commit 39cfaba
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 102 deletions.
102 changes: 0 additions & 102 deletions .github/workflows/test-and-run.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "test"
on:
workflow_dispatch:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608

- uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: build
uses: devcontainers/ci@57eaf0c9b518a76872bc429cdceefd65a912309b
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@82409b24a08684f54ea5baa6b376e36dad37fb81
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}

0 comments on commit 39cfaba

Please sign in to comment.