-
Notifications
You must be signed in to change notification settings - Fork 165
36 lines (29 loc) · 886 Bytes
/
test.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
name: Test
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout with token
if: github.event_name != 'pull_request'
uses: actions/checkout@v3
with:
token: ${{ secrets.API_GITHUB_TOKEN }}
- name: Checkout without token
if: github.event_name == 'pull_request'
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker Build Test
run: docker buildx build --load --tag test:test --file ./Dockerfile ./
- name: Version
if: github.event_name != 'pull_request'
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 17.4
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}