Add test-proxy workflow job, check in dist/, and test local action

This commit is contained in:
David Kale 2020-02-06 11:49:41 -05:00
parent 78a4b2143b
commit 09852407d8
3 changed files with 6205 additions and 0 deletions

View file

@ -52,3 +52,45 @@ jobs:
- name: Build & Test
run: npm run test
test-proxy:
name: Test on ubuntu-latest
runs-on: ubuntu-latest
services:
squid:
image: dakale/squid
ports: ['3128:3128']
options: '--health-cmd "exit 0" --health-interval 3s'
env:
http_proxy: http://localhost:3128
https_proxy: http://localhost:3128
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: ./
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: npm ci
- name: Prettier Format Check
run: npm run format-check
- name: ESLint Check
run: npm run lint
- name: Build & Test
run: npm run test

3091
dist/restore/index.js vendored Normal file

File diff suppressed because it is too large Load diff

3072
dist/save/index.js vendored Normal file

File diff suppressed because it is too large Load diff