-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.2 KB
/
ci.yml
File metadata and controls
44 lines (42 loc) · 1.2 KB
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
env:
RUNNER_DEBUG: 1
name: 'CI'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- run: |
npm install
npm run all
- run: |
git diff --exit-code ':!dist/index.js.map' ':!badges/coverage.svg'
test: # make sure the action works on a clean machine without building
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./
- name: Get the version
run: stackit --version
- uses: ./
with:
version: v0.30.0
- name: Get the version
run: stackit --version | grep 0.30.0
- uses: ./
with:
version: 0.28.0
- name: Get the version
run: stackit --version | grep 0.28.0