Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Tests

on:
push:
branches: '*'
pull_request:
branches: main
# Run every day at midnight PST (0800 UTC)
# https://crontab.guru/#0_8_*_*_*
schedule:
- cron: '0 8 * * *'
branches: ["main"]
push:
branches: ["main"]
tags: ["*"]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -184,11 +181,13 @@ jobs:
- name: localstack
run: |
curl 'http://localstack:4566/health'
pip install awscli-local[ver1]
python3 -m venv /tmp/venv
. /tmp/venv/bin/activate
pip install --no-cache-dir awscli-local[ver1]
aws configure set aws_access_key_id testkey
aws configure set aws_secret_access_key testsecret
aws configure set default.region us-east-1
aws s3 mb s3://test-bucket --endpoint-url=http://localstack:4566
aws --endpoint-url=http://localstack:4566 s3 mb s3://test-bucket
- name: rust
uses: actions-rs/toolchain@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions src/hpr_routing.erl
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ foreach_setup() ->
true = erlang:register(hpr_sup, self()),
ok = hpr_route_ets:init(),
ok = hpr_multi_buy:init(),
ok = hpr_device_stats:init(),
meck:new(hpr_gateway_location, [passthrough]),
meck:expect(hpr_gateway_location, get, fun(_) -> {error, not_implemented} end),
ok.
Expand All @@ -507,6 +508,7 @@ foreach_cleanup(ok) ->
true = ets:delete(hpr_multi_buy_ets),
true = ets:delete(hpr_route_devaddr_ranges_ets),
true = ets:delete(hpr_route_eui_pairs_ets),
true = ets:delete(hpr_device_stats_ets),
lists:foreach(
fun(RouteETS) ->
SKFETS = hpr_route_ets:skf_ets(RouteETS),
Expand Down
Loading