-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (44 loc) · 1.25 KB
/
release-tests.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
# Done on any changes to Suibase main branch
#
# This is a very quick sanity check that simulate someone
# updating to the latest branch + current pre-built binaries.
#
# Purposely do not install Rust + Sui pre-requesites.
#
# More extensive tests are expected already done on dev branch and nightly.
#
name: Release Tests
# Controls when the workflow will run
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
name: Test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- name: Checkout Dev Branch
uses: actions/checkout@v4
- name: Sui Prerequesites (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get install curl
- name: Sui Prerequesites (macOS)
if: runner.os == 'macOS'
run: |
brew install curl
- name: Prepare environment
run: |
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
ln -s "$GITHUB_WORKSPACE" "$HOME/suibase"
- name: Only sanity tests the release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
"$HOME/suibase/scripts/tests/run-all.sh" --release-tests