-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (48 loc) · 1.35 KB
/
create-next-app-with-gluestack-ui.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
name: Create Next App with Gluestack UI
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
test:
runs-on: ubuntu-latest
env:
working-directory: packages/create-next-app-with-gluestack-ui
steps:
- uses: actions/checkout@v3
- name: Use Node.js v18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies (prevent updates to lock file)
working-directory: ${{ env.working-directory }}
run: yarn
- name: Building
working-directory: ${{ env.working-directory }}
run: yarn build
- name: Testing
working-directory: ${{ env.working-directory }}
run: yarn test
- name: Notify Success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel_id: C05HK6WEE56
status: SUCCESS by @${{ github.actor}}
color: good
- name: Notify Failure
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel_id: C05HK6WEE56
status: FAILED by @${{ github.actor}}
color: danger