diff options
author | Ajay Ramachandran <[email protected]> | 2021-10-02 17:42:47 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-10-02 17:42:47 -0400 |
commit | 0e147134f3435d842fea9f695f0a6bf113ce8b17 (patch) | |
tree | ff41fa9e30b91a646c3f4fcea6378b30eeb1a05f /.github | |
parent | 8605e23fbbe1215b9bc54a0e714c6ade11cf6c22 (diff) | |
download | SponsorBlock-0e147134f3435d842fea9f695f0a6bf113ce8b17.tar.gz SponsorBlock-0e147134f3435d842fea9f695f0a6bf113ce8b17.zip |
Add testing action
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 4 | ||||
-rw-r--r-- | .github/workflows/release.yml | 4 | ||||
-rw-r--r-- | .github/workflows/tests.yml | 20 |
3 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f9ab279..f50cc308 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,9 @@ jobs: # Initialization - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - - run: npm install + with: + node-version: '16' + - run: npm ci - name: Copy configuration run: cp config.json.example config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 538ee2ff..660e1095 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,9 @@ jobs: # Initialization - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - - run: npm install + with: + node-version: '16' + - run: npm ci - name: Copy configuration run: cp config.json.example config.json diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..83a957e4 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,20 @@ +name: Tests + +on: [push, pull_request] + +jobs: + + build: + name: Run tests + runs-on: ubuntu-latest + + steps: + # Initialization + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + - run: npm ci + + - name: Run tests + run: npm run test-without-building
\ No newline at end of file |