Skip to content

Commit

Permalink
Merge setup-erlang in
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Mar 29, 2021
1 parent 86521d7 commit a1371c6
Show file tree
Hide file tree
Showing 121 changed files with 15,928 additions and 5,771 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
env:
browser: true
es2021: true
extends:
- google
parserOptions:
ecmaVersion: 12
rules: {
indent: ["warn", 2],
max-len: ["warn", 100],
no-unused-vars: ["error", {"varsIgnorePattern": "^_"}],
require-jsdoc: 0,
semi: 0
}
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check_integrity:
name: Make sure expected pre-release actions are performed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm install -g npm
- run: npm install
- run: npm run build
- run: npm run jslint
- run: npm run licenses
- run: npm install -g markdownlint-cli
- run: npm run markdownlint
- run: npm run shellcheck
- run: npm run yamllint
- name: Check if build left artifacts
run: git diff --exit-code
27 changes: 0 additions & 27 deletions .github/workflows/licensed.yml

This file was deleted.

43 changes: 37 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Test
---
name: test

on:
push: {branches: main}
Expand All @@ -8,8 +9,13 @@ on:

jobs:
unit_test:
name: Pre-release unit tests
runs-on: ubuntu-latest
name: Unit tests
env:
CI_TEST_OTP_VSN: '23.2'
CI_TEST_ELIXIR_VSN: '1.11'
CI_TEST_REBAR3_VSN: '3.14'
CI_TEST_ENV: test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -18,17 +24,29 @@ jobs:
- run: npm test

integration_test:
name: >
Pre-release integration tests
(Erlang/OTP ${{matrix.pair.otp-version}},
Elixir ${{matrix.pair.elixir-version}},
rebar3 ${{matrix.pair.rebar3-version}})
runs-on: ubuntu-latest
name: OTP ${{matrix.pair.otp-version}} / Elixir ${{matrix.pair.elixir-version}}
strategy:
matrix:
pair:
# Full Versions
- otp-version: '22.0'
elixir-version: '1.9.1'
- otp-version: '22.3.4'
rebar3-version: '3.14.4'
- otp-version: '23.2'
rebar3-version: '3.14.4'
# Semver ranges
- otp-version: '21.x'
elixir-version: '<1.9.1'
- otp-version: '21.x'
rebar3-version: '3.14.4'
- otp-version: '22.3.4'
rebar3-version: '3.x'
# Branches
- otp-version: '22.0'
elixir-version: master
Expand All @@ -45,10 +63,23 @@ jobs:
with:
otp-version: ${{matrix.pair.otp-version}}
elixir-version: ${{matrix.pair.elixir-version}}
- name: Output runtime versions
run: echo "Elixir ${{steps.setup-elixir.outputs.elixir-version}} / OTP ${{steps.setup-elixir.outputs.otp-version}}"
rebar3-version: ${{matrix.pair.rebar3-version}}
- name: Output Erlang/OTP version
run: echo "Erlang/OTP ${{steps.setup-elixir.outputs.otp-version}}"
- name: Check Erlang/OTP version
run: erl -version
- name: Output Elixir version
run: echo "Elixir ${{steps.setup-elixir.outputs.elixir-version}}"
- name: Run Mix project tests
run: |-
cd test-project
cd test-projects/mix
mix deps.get
mix test
- name: Run rebar3 project tests
run: |
cd test-projects/rebar3
rebar3 as test do xref,dialyzer,ct,cover
- name: Output rebar3 version
run: echo "rebar3 ${{steps.setup-elixir.outputs.rebar3-version}}"
- name: Check rebar3 version
run: rebar3 version
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/**
21 changes: 0 additions & 21 deletions .licensed.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .licenses/npm/@actions/core-1.0.0.dep.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .licenses/npm/@actions/core-1.2.6.dep.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .licenses/npm/@actions/exec-1.0.0.dep.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .licenses/npm/@actions/exec-1.0.4.dep.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .licenses/npm/@actions/io-1.0.0.dep.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .licenses/npm/@actions/io-1.0.2.dep.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .licenses/npm/@actions/tool-cache.dep.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .licenses/npm/@babel/code-frame.dep.yml

This file was deleted.

Loading

0 comments on commit a1371c6

Please sign in to comment.