fix(ci): use direct extracted file #4
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| code-checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Install OpenVPN | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y openvpn | |
| - name: Download IVPN config | |
| run: | | |
| wget -O ivpn-config.zip "https://api.ivpn.net/v5/config/ivpn-openvpn-config.zip?country=US&city=Las+Vegas&host=us-nv1.gw.ivpn.net&proto=udp&port=2049" | |
| unzip ivpn-config.zip | |
| - name: Start IVPN connection | |
| run: | | |
| echo "${{ secrets.IVPN_ACCOUNT_NUMBER }}" > auth.txt | |
| echo "${{ secrets.IVPN_ACCOUNT_NUMBER }}" >> auth.txt | |
| sudo openvpn --config USA-Las_Vegas.ovpn --auth-user-pass auth.txt & | |
| sleep 10 # Wait for VPN to establish | |
| - name: Run typecheck | |
| run: yarn typecheck | |
| - name: Run checks | |
| run: yarn ci | |
| - name: Cleanup VPN | |
| if: always() | |
| run: | | |
| sudo killall openvpn || true | |
| rm -f auth.txt |