[ci] Don't run unit tests on release
This commit is contained in:
parent
b6b1430cb9
commit
29c083e3f9
1 changed files with 2 additions and 13 deletions
|
@ -3,20 +3,7 @@ on:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
jobs:
|
jobs:
|
||||||
unit-tests:
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
|
||||||
steps:
|
|
||||||
- name: Clone repository
|
|
||||||
run: git clone ${{ github.event.repository.clone_url }} --branch=${{ github.ref_name }} --depth=1 /iceshrimp
|
|
||||||
- name: Run unit tests
|
|
||||||
run: |
|
|
||||||
cd /iceshrimp
|
|
||||||
dotnet test
|
|
||||||
build-and-push:
|
build-and-push:
|
||||||
needs:
|
|
||||||
- unit-tests
|
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: node:16-bullseye
|
image: node:16-bullseye
|
||||||
|
@ -24,6 +11,8 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
|
- name: Clone repository
|
||||||
|
run: git clone ${{ github.event.repository.clone_url }} --branch=${{ github.ref_name }} --depth=1 /iceshrimp
|
||||||
- name: Install Docker Cli
|
- name: Install Docker Cli
|
||||||
run: |-
|
run: |-
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
install -m 0755 -d /etc/apt/keyrings
|
||||||
|
|
Loading…
Add table
Reference in a new issue