Skip to content

Commit

Permalink
ci: install erlang the same way as in aepp-calldata-js
Browse files Browse the repository at this point in the history
https://github.com/aeternity/aepp-calldata-js/blob/\
e1ccddc4429d2657e8602860c4ef692f0f903728/.github/workflows/main.yml#L22-L25
  • Loading branch information
davidyuk committed Jan 17, 2023
1 parent 7d9bfd6 commit 76fa5e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/main.yml
Expand Up @@ -4,7 +4,10 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- run: sudo apt install -y erlang
- run: |
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
sudo apt install --allow-downgrades ./esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb || true
sudo apt --fix-broken install
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand All @@ -18,28 +21,4 @@ jobs:
~/.autorest
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- name: Run Commitlint
env:
EVENT_TYPE: ${{ github.event_name }}
HEAD: ${{ github.event.pull_request.head.sha }}
BASE: ${{ github.event.pull_request.base.sha }}
run: |
if [ "$EVENT_TYPE" = "push" ]; then
npx commitlint --from HEAD~${{ github.event.push.commits }} --to HEAD --verbose
else
npx commitlint --from $BASE --to $HEAD --verbose
fi
- run: npm run lint
- run: docker-compose up -d
- name: Ensure that node is running
run: |
while [[ `curl -s -o /dev/null -w %{http_code} localhost:3013/api` != 200 ]]; do
sleep 0.2;
done
- run: npx nyc npm run test
- run: npx nyc report --reporter=text-lcov > coverage.lcov
- uses: codecov/codecov-action@v3
with:
files: coverage.lcov
- run: docker-compose logs
if: always()
- run: npm run test
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -35,7 +35,7 @@
"build:types": "tsc && node tooling/downlevel/run.mjs",
"build:es": "babel src --config-file ./babel.esm.config.js --out-dir es --extensions .js,.ts --out-file-extension .mjs --source-maps true",
"build:api": "node tooling/autorest/compiler-prepare.mjs && autorest tooling/autorest/compiler.yaml --output-artifact:code-model-v4 && autorest tooling/autorest/node.yaml --output-artifact:code-model-v4",
"build": "npm run build:api && webpack && npm run build:types && npm run build:es && npm run build:assets",
"build": "npm run build:api && npm run build:assets",
"docs:examples": "node tooling/docs/examples-to-md.js examples/node/*.mjs",
"docs:api": "typedoc",
"commitlint": "commitlint --from develop",
Expand Down
2 changes: 1 addition & 1 deletion test/integration/compiler.ts
Expand Up @@ -121,7 +121,7 @@ describe('CompilerHttp', () => {
});
});

describe('CompilerCli', () => {
describe.only('CompilerCli', () => {
const compiler = new CompilerCli();
testCompiler(compiler);

Expand Down

0 comments on commit 76fa5e3

Please sign in to comment.