mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-30 11:40:48 +00:00
Add husky setup
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
name: Licensed
|
||||
|
||||
on:
|
||||
push: {branches: master}
|
||||
pull_request: {branches: master}
|
||||
repository_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
name: Check licenses
|
||||
steps:
|
||||
- uses: actions/checkout@v1.0.0
|
||||
- run: |-
|
||||
cd /tmp
|
||||
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.3.2/licensed-2.3.2-linux-x64.tar.gz
|
||||
sudo tar -xzf licensed.tar.gz
|
||||
sudo mv licensed /usr/local/bin/licensed
|
||||
- run: licensed status
|
||||
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push: {branches: master}
|
||||
pull_request: {branches: master}
|
||||
repository_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
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
|
||||
# Semver ranges
|
||||
- otp-version: 21.x
|
||||
elixir-version: <1.9.1
|
||||
# Branches
|
||||
- otp-version: 22.0
|
||||
elixir-version: master
|
||||
steps:
|
||||
- uses: actions/checkout@v1.0.0
|
||||
- name: Use actions/setup-elixir
|
||||
uses: ./
|
||||
with:
|
||||
otp-version: ${{matrix.pair.otp-version}}
|
||||
elixir-version: ${{matrix.pair.elixir-version}}
|
||||
- name: Run Mix project tests
|
||||
run: |-
|
||||
cd test-project
|
||||
mix deps.get
|
||||
mix test
|
||||
Reference in New Issue
Block a user