Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andy128k committed Sep 11, 2024
1 parent d12b1f6 commit bb33869
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
pull_request_target:
types:
- opened
Expand All @@ -17,26 +20,37 @@ jobs:
matrix:
erlang:
- 24.2
- 25
- 26
- 27
# - 25
# - 26
# - 27

runs-on: ubuntu-latest

container:
image: erlang:${{ matrix.erlang }}

steps:
- name: Setup SSH
- uses: actions/checkout@v3

- name: Run tests
run: |
set -ex
mkdir -p -m 700 ~/.ssh
ssh-keygen -N '' -f ~/.ssh/id_rsa
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- uses: actions/checkout@v3
mkdir -p -m 700 /root/.ssh
- name: Run tests
run: make test
env:
DEBUG: 1
echo "Host *" > /root/.ssh/config
echo " IdentityFile /root/.ssh/id_rsa" >> /root/.ssh/config
chmod 600 /root/.ssh/config
ssh-keygen -t rsa -N '' -f /root/.ssh/id_rsa
eval `ssh-agent -s`
ssh-add /root/.ssh/id_rsa
ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts
chmod 600 /root/.ssh/known_hosts
ssh -vT [email protected]
export DEBUG=1
make test
4 changes: 2 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

{profiles,
[ {test, [ {deps,
[ {meck, {git, "git@github.com:eproxus/meck.git", {tag, "0.8.9"}}}
, {shackle, {git, "git@github.com:lpgauth/shackle.git", {tag, "0.6.4"}}}
[ {meck, {git, "https://github.com/eproxus/meck.git", {tag, "0.8.9"}}}
, {shackle, {git, "https://github.com/lpgauth/shackle.git", {tag, "0.6.4"}}}
]} ]}
]
}.

0 comments on commit bb33869

Please sign in to comment.