generated from spaceship-prompt/spaceship-section
-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 988 Bytes
/
ci.yaml
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
name: ci
on:
push:
branches:
- main
- +([0-9])?(.{+([0-9]),x}).x
pull_request:
jobs:
main:
name: Tests
runs-on: ubuntu-latest
container: ghcr.io/spaceship-prompt/spaceship-prompt:latest
steps:
- name: ⬇️ Checkout Repo
uses: actions/checkout@v2
- name: 🖨 Print Zsh Version
run: zsh --version
- name: 🧪 Run Tests
run: ./tests/spaceship-vue.test.zsh
release:
name: Release
needs: main
if: ${{ github.repository == 'spaceship-prompt/spaceship-vue' && github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout Repo
uses: actions/checkout@v2
- name: 🚀 Release
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
semantic-release-license
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}