Skip to content

Commit

Permalink
Testing github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed Dec 24, 2024
1 parent 46b2e0e commit 6789744
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/tests-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: nitrogen_core tests and dialyzer
on: push

jobs:
linux:
name: OTP ${{ matrix.otp_version }} - {{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: true

strategy:
matrix:
include:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
otp_version: ['25.x', '26.x', '27.x']
rebar3_version: ["3.22.1", "3.24.0"]

steps:
- name: Install firefox

- name: Install OTP ${{matrix.otp_version}}
uses: erlef/setup-beam@v1
with:
version-type: loose
otp-version: ${{ matrix.otp_version}}
rebar3-version: ${{ matrix.rebar3_version}}

- name: Checkout Nitrogen
uses: actions/checkout@v3


- name: Install Firefox
uses: browser-actions/setup-firefox@v1

- name: Install Chrome
uses: browser-actions/setup-chrome@v1

- name: Test Browsers
run: make test

- name: Run Dialyzer
run: make dialyzer
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test: rebar3
mkdir -p test
rm -fr test/browsertest
$(MAKE) eunit
git clone https://github.com/nitrogen/NitrogenProject.com.git -b rebar3 test/browsertest
git clone https://github.com/nitrogen/NitrogenProject.com.git -b 3.0 test/browsertest
mkdir -p test/browsertest/_checkouts
ln -s ../../.. test/browsertest/_checkouts/nitrogen_core
cd test/browsertest; $(MAKE) test_all TESTLOGDIR="../results.$(shell date +%Y-%m-%d.%H%M%S)"
Expand Down

0 comments on commit 6789744

Please sign in to comment.