Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Jinnrry/PMail into v2.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinnrry committed Apr 30, 2024
2 parents 756096f + 7c8b71c commit 02c1b12
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/unitTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: PR - Docker unit test

on:
pull_request:
branches:
- master
types: [opened, reopened, synchronize, edited]
# Please, always create a pull request instead of push to master.

permissions:
contents: read
pull-requests: write

concurrency:
group: docker-test-${{ github.ref_name }}
cancel-in-progress: true

jobs:
test:
name: Docker tests
runs-on: ubuntu-latest
container:
image: golang
env:
REPOSITORY: ${{ github.repository }}
TRIGGERING_ACTOR: ${{ github.triggering_actor }}
SOURCE_BRANCH: ${{ github.ref_name }}
COMMIT: ${{ github.workflow_sha }}
EVENT: ${{ github.event_name}}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Pull Request Labeler
if: ${{ failure() }}
uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
labels: 'Auto: Test Failed'

- name: Setup Node.js environment
run: apt update && apt install -y nodejs npm

- name: Install Dependencies
run: npm install --global yarn

- name: FE build
run: make build_fe

- name: Run Test
run: make test

0 comments on commit 02c1b12

Please sign in to comment.