Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
ci: updating deployment file
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Psztyc <jarrodek@gmail.com>
  • Loading branch information
jarrodek committed Aug 5, 2021
1 parent 46c7960 commit d8266fa
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ env:
FORCE_COLOR: 1
on:
push:
branches:
- master
- main
- develop
- stage
pull_request:
branches:
- master
- main
- stage
jobs:
test_linux:
name: Ubuntu
Expand All @@ -23,8 +29,10 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm test
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
test_win:
name: "Windows"
runs-on: windows-latest
Expand All @@ -40,8 +48,10 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm test
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
tag:
name: "Publishing release"
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
Expand All @@ -64,7 +74,7 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm install
- name: Read version from package.json
uses: culshaw/read-package-node-version-actions@v1
id: package-node-version
Expand Down

0 comments on commit d8266fa

Please sign in to comment.