Skip to content

Commit 6789744

Browse files
committed
Testing github actions
1 parent 46b2e0e commit 6789744

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: nitrogen_core tests and dialyzer
2+
on: push
3+
4+
jobs:
5+
linux:
6+
name: OTP ${{ matrix.otp_version }} - {{ matrix.os }}
7+
runs-on: ${{ matrix.os }}
8+
continue-on-error: true
9+
10+
strategy:
11+
matrix:
12+
include:
13+
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
14+
otp_version: ['25.x', '26.x', '27.x']
15+
rebar3_version: ["3.22.1", "3.24.0"]
16+
17+
steps:
18+
- name: Install firefox
19+
20+
- name: Install OTP ${{matrix.otp_version}}
21+
uses: erlef/setup-beam@v1
22+
with:
23+
version-type: loose
24+
otp-version: ${{ matrix.otp_version}}
25+
rebar3-version: ${{ matrix.rebar3_version}}
26+
27+
- name: Checkout Nitrogen
28+
uses: actions/checkout@v3
29+
30+
31+
- name: Install Firefox
32+
uses: browser-actions/setup-firefox@v1
33+
34+
- name: Install Chrome
35+
uses: browser-actions/setup-chrome@v1
36+
37+
- name: Test Browsers
38+
run: make test
39+
40+
- name: Run Dialyzer
41+
run: make dialyzer

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test: rebar3
2929
mkdir -p test
3030
rm -fr test/browsertest
3131
$(MAKE) eunit
32-
git clone https://github.com/nitrogen/NitrogenProject.com.git -b rebar3 test/browsertest
32+
git clone https://github.com/nitrogen/NitrogenProject.com.git -b 3.0 test/browsertest
3333
mkdir -p test/browsertest/_checkouts
3434
ln -s ../../.. test/browsertest/_checkouts/nitrogen_core
3535
cd test/browsertest; $(MAKE) test_all TESTLOGDIR="../results.$(shell date +%Y-%m-%d.%H%M%S)"

0 commit comments

Comments
 (0)