-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (41 loc) · 1.1 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
50
51
name: CI/CD
on:
push:
branches:
- master
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
test:
name: Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure CI
run: |
cp .env.ci.sample .env
cp .ydf.env.sample .ydf.env
cp .shellcheckrc.ci .shellcheckrc
make install-opt-ubuntu && make install-dev-ubuntu
- name: Run Lint
uses: ludeeus/action-shellcheck@master
- name: Run Unit Tests
run: make -f Makefile.vedv test-all
release-please:
needs: test
name: Release Please
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
steps:
- uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
package-name: release-please-action
prerelease: true