-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (36 loc) · 968 Bytes
/
test.yaml
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
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "16"
- name: Checkout code
uses: actions/checkout@v4
- name: Run yarn install
run: yarn install
- name: Run yarn lint
run: yarn lint
- name: Check ./dist/index.js is up to date
run: yarn dist && git diff --exit-code
- name: Test downloading Giant Swarm binary
uses: ./
with:
binary: "devctl"
version: "2.0.0"
- name: Test downloading external binary
uses: ./
with:
binary: "semver"
version: "3.0.0"
download_url: "https://github.com/fsaintjacques/${binary}-tool/archive/${version}.tar.gz"
tarball_binary_path: "*/src/${binary}"
smoke_test: "${binary} --version"