espup/test.sh
Sergio Gasquez Arcos 11becfa4bf
Append header if GITHUB_TOKEN environment variable is present (#128)
* feat:  Append header if GITHUB_TOKEN environment variable is present

* build: ⬆️ Add blocking feature of reqwest

* feat:  If a semver version is provided, get the latest subpatch and use that version

* docs: 📝 Update invalid_version error

* perf: ️ Remove unnecesary into_diagnostics calls

* feat:  Even if the regex matches, check that the release exists

* feat:  Update auth

* chore: 🔊 Add log

* chore: ️ Add basic auth

* Add gh api tests

* fix: 🐛 fix typo

* feat: 🎨 Remove permissions

* test:  Add rust test

* test:  Add rust test

* ci: ️ Add checkout action

* ci: 🧪 Test with permissions

* ci: 🧪 Update headers

* ci: 🎨 Avoid triggering other CI

* ci:  Check if GITHUB TOKEN is present

* ci:  Update get call

* ci: 🧪 Update headers

* style: 🎨 Simplify code

* ci: 🧪 Update headers

* ci: 🧪 Add curl test

* feat:  Add retries

* feat:  Add retries

* feat:  Improve retries

* chore: 🔊 Add logs to tests

* feat:  Remove retries

* ci: 🧪 Test api limit

* chore: 🧪 Test with retries

* feat:  Create a github_query fn

* ci: 🧪 Update CI rust test

* feat: 🔊 Update logging

* feat:  Add maximum retries

* chore: 🔥 Remove gh_test.yaml

* style: 🎨 Remove duplicated log

* ci: 👷 Add env to CI

* chore: 🔊 Add debug log

* ci: 🧪 Test without env

* revert: ️ Revert env removal

* ci: 👷 Update environment in CI

* chore: 🔊 Add logging

* chore: 🔥 Remove download test

* feat:  Move github_query fn to mod.rs
2023-01-11 11:08:15 +01:00

12 lines
283 B
Bash

#!/usr/bin/env bash
set -e
set -o pipefail
for i in {1..100}
do
cargo test test_xtensa_rust_parse_version -- --nocapture
# curl --request GET \
# --url https://api.github.com/repos/esp-rs/rust-build/releases \
# --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}'
done