-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (45 loc) · 1.34 KB
/
cicd.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
name: CI/CD
on:
workflow_dispatch:
push:
pull_request:
schedule:
- cron: "20 4 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Updates
run: make deps
- name: Build
run: make build
- name: Lint
run: make cicd-lint
- name: Run checks
run: |
make nightly
make install-cargo-deny
make install-udeps
make check
- name: Run tests
run: make test
- name: Build docs
run: make docs
- name: Run rucksack (locally)
run: ./tests/rucksack_dev.sh
- name: Install rucksack (crates.io)
run: cargo install rucksack
- name: Run rucksack
run: ./tests/rucksack.sh
- name: Notify CI/CD Slack Channel
uses: innocarpe/actions-slack@v1
with:
status: ${{ job.status }}
success_text: '✅ Build for ${{ github.repository }} succeeded! 😄🌈🐴🚢🐿 (commit id: ${{ github.sha }})'
failure_text: '❌ Build for ${{ github.repository }} failed! 🤬💣🔥🚒 (commit id: ${{ github.sha }})'
cancelled_text: '🚧 Build for ${{ github.repository }} was cancelled ... 😯🦡 (commit id: ${{ github.sha }})'
env:
GITHUB_TOKEN: ${{ secrets.CICD_BOT_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.CICD_BOT_WEBHOOK }}
if: always()