diff --git a/.github/workflows/tests-workflow.yml b/.github/workflows/tests-workflow.yml new file mode 100644 index 00000000..e5d319d8 --- /dev/null +++ b/.github/workflows/tests-workflow.yml @@ -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 diff --git a/Makefile b/Makefile index c4007bf3..7ac60c1a 100755 --- a/Makefile +++ b/Makefile @@ -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)"