-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (61 loc) · 1.8 KB
/
test.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
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test_cli:
runs-on: ubuntu-latest
name: CLI
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- run: unzip assets/vanilla_structures.zip -d structures
- run: python cli/__main__.py
test_regolith_filter:
runs-on: ubuntu-latest
name: Regolith Filter
strategy:
matrix:
regolith-version: ['1.5.0']
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- uses: iffy/[email protected]
with:
version: stable
- name: list versions
shell: bash
run: |
python --version
node -v
nim -v
java -version
deno --version
dotnet --list-sdks
- name: Install Regolith
shell: bash
run: |
wget https://github.com/Bedrock-OSS/regolith/releases/download/${{ matrix.regolith-version }}/regolith_${{ matrix.regolith-version }}_linux_amd64.tar.gz
tar -xzf regolith_${{ matrix.regolith-version }}_linux_amd64.tar.gz
mv regolith /usr/local/bin
rm regolith_${{ matrix.regolith-version }}_linux_amd64.tar.gz
chmod +x /usr/local/bin/regolith
- name: Install Regolith Filters
shell: bash
working-directory: './regolith-test-project'
run: regolith install-all
- name: Compiles
shell: bash
working-directory: './regolith-test-project'
run: regolith run default