-
-
Notifications
You must be signed in to change notification settings - Fork 39
87 lines (82 loc) · 2.03 KB
/
pr-release-tests.yml
File metadata and controls
87 lines (82 loc) · 2.03 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
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
76
77
78
79
80
81
82
83
84
85
86
87
name: PR Release Tests
on:
pull_request:
jobs:
package:
uses: ./.github/workflows/pkg-binary.yml
strategy:
fail-fast: false
matrix:
arch:
- x64
- arm64
os:
- linux
- macos
- win
with:
arch: ${{ matrix.arch }}
filename: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.sha }}
node-version: "20"
os: ${{ matrix.os }}
version: dev
verify:
uses: ./.github/workflows/generate-checksums.yml
needs:
- package
with:
download-pattern: packaged-lando-*
flatten: true
show: true
release:
runs-on: ubuntu-24.04
needs:
- verify
steps:
- name: Create releases
run: mkdir -p /tmp/releases
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: /tmp/releases
merge-multiple: true
- name: Upload release files
uses: actions/upload-artifact@v4
with:
name: pr-release-test-${{ github.sha }}
path: /tmp/releases/*
if-no-files-found: error
retention-days: 1
npm:
runs-on: ubuntu-24.04
needs:
- release
env:
TERM: xterm
strategy:
matrix:
node-version:
- '20'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
- name: Lint code
run: npm run lint
- name: Run unit tests
run: npm run test:unit
- name: Prepare Release
uses: lando/prepare-release-action@v3
with:
version: dev
sync: false
lando-plugin: true
- name: Publish to npm dryrun
run: npm publish --access public --dry-run