-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (61 loc) · 1.78 KB
/
checks.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Checks
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main, "version/*"]
jobs:
check:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- run: deno --version
- run: deno fmt --check
- run: deno lint
- run: deno task test
- id: parse_version
name: Parse the Version
run: deno run -A main.ts parse
- name: Print the Version
run: |
cat >> $GITHUB_STEP_SUMMARY<<EOF
# Version
\`\`\`
${{ steps.parse_version.outputs.version }}
\`\`\`
| part | value |
| ---------- | --- |
| version | \`${{ steps.parse_version.outputs.version }}\` |
| major | \`${{ steps.parse_version.outputs.major }}\` |
| minor | \`${{ steps.parse_version.outputs.minor }}\` |
| patch | \`${{ steps.parse_version.outputs.patch }}\` |
| prerelease | \`${{ steps.parse_version.outputs.prerelease || ' ' }}\` |
| build | \`${{ steps.parse_version.outputs.build || ' ' }}\` |
EOF
action:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: ./setup
with:
version: 0.9.5
- run: semver parse
docker:
runs-on: ubuntu-latest
needs: action
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build
uses: docker/build-push-action@v4
with:
push: false
tags: optum/semver-cli:pr
platforms: linux/amd64