Skip to content

Commit af3962b

Browse files
authored
Merge pull request #285 from byexamples/Fix-CI
ci: fix ci/test issues
2 parents 1fda1e1 + a3de439 commit af3962b

13 files changed

Lines changed: 239 additions & 144 deletions

File tree

.github/workflows/test-lang-go.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test-lang-go
2+
on: [pull_request]
3+
jobs:
4+
lang-go-test:
5+
name: "Lang Go test (ver: ${{ matrix.go-version.go }}) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
go-version: [{go: "1.22", yaegi: "v0.16.1"}, {go: "1.19", yaegi: "v0.14.0"}, {go: "1.18", yaegi: "v0.14.0"}, {go: "1.17", yaegi: "v0.13.0"}, {go: "1.16", yaegi: "v0.13.0"}]
10+
os: [ubuntu-22.04, macos-26-intel]
11+
include:
12+
- os: ubuntu-22.04
13+
python-version: "3.7.17"
14+
- os: macos-26-intel
15+
python-version: "3.12"
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
cache-dependency-path: setup.py
24+
- name: Setup go
25+
uses: actions/setup-go@v6
26+
with:
27+
go-version: ${{ matrix.go-version.go }}
28+
- run: go version
29+
- run: make deps-dev
30+
- run: make install-from-pkg-tgz
31+
- run: go install github.com/traefik/yaegi/cmd/yaegi@${{ matrix.go-version.yaegi }}
32+
- run: PATH=$PATH:$(go env GOPATH)/bin make lang-go-test
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: test-lang-iasm
2+
on: [pull_request]
3+
jobs:
4+
lang-iasm-test:
5+
name: "Lang iasm test (ver: latest) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-22.04, macos-26-intel]
10+
include:
11+
- os: ubuntu-22.04
12+
python-version: "3.7.17"
13+
- os: macos-26-intel
14+
python-version: "3.12"
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup python
18+
uses: actions/setup-python@v6
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
cache: 'pip'
22+
cache-dependency-path: setup.py
23+
- run: make deps-dev
24+
- run: make install-from-pkg-tgz
25+
- run: pip install iasm
26+
- run: make lang-iasm-test
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: test-lang-java
2+
on: [pull_request]
3+
jobs:
4+
lang-java-test:
5+
name: "Lang Java test (ver: ${{ matrix.java }}) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
java: [ '13', '15', '17', '21', '24' ]
10+
os: [ubuntu-22.04, macos-26-intel]
11+
include:
12+
- os: ubuntu-22.04
13+
python-version: "3.7.17"
14+
- os: macos-26-intel
15+
python-version: "3.12"
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
cache-dependency-path: setup.py
24+
- name: Setup java
25+
uses: actions/setup-java@v5
26+
with:
27+
distribution: 'zulu'
28+
java-version: ${{ matrix.java }}
29+
- run: make deps-dev
30+
- run: make install-from-pkg-tgz
31+
- run: make lang-java-test
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: test-lang-javascript
2+
on: [pull_request]
3+
jobs:
4+
lang-javascript-test:
5+
name: "Lang Javascript test (ver: ${{ matrix.node-version }}) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
node-version: [10.x, 12.x, 14.x, 15.x, 16.x, 18.x, 20.x, 22.x, 23.x]
10+
os: [ubuntu-22.04, macos-26-intel]
11+
include:
12+
- os: ubuntu-22.04
13+
python-version: "3.7.17"
14+
- os: macos-26-intel
15+
python-version: "3.12"
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
cache-dependency-path: setup.py
24+
- name: Setup Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v6
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- run: make deps-dev
29+
- run: make install-from-pkg-tgz
30+
- run: make lang-javascript-test
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: test-lang-ruby
2+
on: [pull_request]
3+
jobs:
4+
lang-ruby-test:
5+
name: "Lang Ruby test (ver: ${{ matrix.ruby-version }}) (os: ${{ matrix.os }})"
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
ruby-version: ["2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0"]
10+
os: [ubuntu-22.04, macos-26-intel]
11+
include:
12+
- os: ubuntu-22.04
13+
python-version: "3.7.17"
14+
- os: macos-26-intel
15+
python-version: "3.12"
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
cache-dependency-path: setup.py
24+
- name: Setup ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby-version }}
28+
- run: make deps-dev
29+
- run: make install-from-pkg-tgz
30+
- run: make lang-ruby-test

0 commit comments

Comments
 (0)