-
Notifications
You must be signed in to change notification settings - Fork 36
51 lines (43 loc) · 1.26 KB
/
heath-check.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: Health check
on:
schedule:
- cron: '*/20 * * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: read
jobs:
changes:
name: Repository changes
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: npm
cache-dependency-path: tests/package-lock.json
- name: Install dependencies
working-directory: tests
run: |
npm install
npm install -g @e2b/cli
- name: Test build
working-directory: tests
run: make test
env:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}
- name: Release Failed - Slack Notification
uses: rtCamp/action-slack-notify@v2
if: failure()
env:
SLACK_COLOR: "#ff0000"
SLACK_MESSAGE: ":here-we-go-again: :bob-the-destroyer: We need :fix-parrot: ASAP :pray:"
SLACK_TITLE: "Health check failed"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}