forked from 4GeeksAcademy/4GeeksAcademy
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) Β· 1.36 KB
/
Copy pathnode-testing.yml
File metadata and controls
45 lines (40 loc) Β· 1.36 KB
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
38
39
40
41
42
43
44
45
name: Testing for Errors
on:
push:
branches: master
pull_request:
branches: master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test
- run: npm run build --if-present
env:
CI: true
comment:
runs-on: ubuntu-latest
needs: build
steps:
- name: Add PR Comment
uses: mshick/add-pr-comment@v1
if: github.event.check_suite.conclusion
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# The contents of the comment.
message: |
## πΊπΈ Congratulations! π₯π
- β
Your YML was successsfully validated and its being merged into the master branch of the repository.
- β° Wait a few minutes and you will probably see your name on this list: https://sep.4geeksacademy.co
## πͺπΈ Enhorabuena! π₯π
- β
Tu fichero YML fue validado exitosamente y esta siendo mezclado con el codigo que esta en la rama master del repositorio.
- β° Espera unos minutos y seguramente encontraras tu nombre en esta lista: https://sep.4geeksacademy.co