chore: add resi proxy to reddit #1616
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Go Tests | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Restore cached cookies | |
| id: cache-cookies-restore | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| cookies | |
| key: ${{ runner.os }}-cookies | |
| - name: Run tests | |
| run: | | |
| make test | |
| sudo mv coverage/coverage.txt coverage.txt | |
| sudo chmod 777 coverage.txt | |
| - name: Save cookies | |
| id: cache-cookies-save | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: | | |
| cookies | |
| key: ${{ steps.cache-cookies-restore.outputs.cache-primary-key }} | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Verify that all environment variables used are in the TEE manifest | |
| run: | | |
| getenvs=$(find . -name \*.go | xargs grep Getenv | sed -e 's/.*Getenv("\([^"]*\).*/\1/' | sort -u) | |
| jsons=$(grep fromHost ./tee/masa-tee-worker.json|sed 's/,$//' | jq -r .name | sort) | |
| echo Environment variables missing from ./tee/masa-tee-worker.json | |
| if diff <(echo "$getenvs") <(echo "$jsons") | grep \<; then | |
| exit 1 | |
| fi | |
| ready-to-merge: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Verify that merging is OK | |
| run: | | |
| if grep -rE 'DO[ ]NOT[ ]MERGE|[ ]FIXME' .; then | |
| exit 1 | |
| fi |