Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheidudko committed Jan 31, 2024
1 parent 6a70a67 commit 649ef3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 40 deletions.
41 changes: 2 additions & 39 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,47 +41,10 @@ jobs:
name: lib
path: ${{ github.workspace }}/lib
retention-days: 1
node16:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [build]
env:
NODE_VERSION: 16
steps:
- name: Сheckout repo
uses: actions/checkout@v3
- name: Unarchiving lib directory
uses: actions/download-artifact@v3
with:
name: lib
path: ${{ github.workspace }}/lib
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Install emulator and test library
run: sudo npm install firebase-tools -g
- name: Set service account
run: echo $SERVICE_ACCOUNT>serviceAccount.json
- name: Run emulator
run: npm run cov
node18:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [build, node16]
needs: [build]
env:
NODE_VERSION: 18
steps:
Expand Down Expand Up @@ -118,7 +81,7 @@ jobs:
node20:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [build, node16, node18]
needs: [build, node18]
env:
NODE_VERSION: 20
steps:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": true,
"[json]": {
Expand Down

0 comments on commit 649ef3a

Please sign in to comment.