-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (48 loc) · 1.85 KB
/
tests.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# name: Tests CI
# on: [push, pull_request]
# jobs:
# test:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [16.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
# - name: Run tests
# run: npm run test:ci
# env:
# BASIC_TOKEN_EU: ${{ secrets.BASIC_TOKEN_EU }}
# BASIC_TOKEN_EL: ${{ secrets.BASIC_TOKEN_EL }}
# BASIC_TOKEN_US: ${{ secrets.BASIC_TOKEN_US }}
# BASIC_TOKEN_AP: ${{ secrets.BASIC_TOKEN_AP }}
# - name: Tests ✅
# if: ${{ success() }}
# run: |
# curl --request POST \
# --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
# --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
# --header 'content-type: application/json' \
# --data '{
# "context": "tests",
# "state": "success",
# "description": "Tests passed",
# "target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
# }'
# - name: Tests 🚨
# if: ${{ failure() }}
# run: |
# curl --request POST \
# --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
# --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
# --header 'content-type: application/json' \
# --data '{
# "context": "tests",
# "state": "failure",
# "description": "Tests failed",
# "target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
# }'