From 1df01dede1d871bc9f76c45ac4e8695eb708f2b5 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Tue, 15 Dec 2020 13:18:01 +0100 Subject: [PATCH] Fix version of node and ubuntu in CI --- .github/workflows/build-lesspass-pure-package.yml | 10 ++++++++-- .github/workflows/deploy-cli.yml | 4 ++-- .github/workflows/deploy-containers.yml | 4 ++-- .github/workflows/deploy-lesspass-crypto-package.yml | 10 ++++++++-- .github/workflows/deploy-lesspass-entropy-package.yml | 10 ++++++++-- .../workflows/deploy-lesspass-fingerprint-package.yml | 10 ++++++++-- .github/workflows/deploy-lesspass-package.yml | 10 ++++++++-- .github/workflows/deploy-lesspass-pure-package.yml | 5 ++++- .../deploy-lesspass-render-password-package.yml | 10 ++++++++-- .github/workflows/test.yml | 16 +++++++++++----- 10 files changed, 67 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-lesspass-pure-package.yml b/.github/workflows/build-lesspass-pure-package.yml index 970804d..208f4b9 100644 --- a/.github/workflows/build-lesspass-pure-package.yml +++ b/.github/workflows/build-lesspass-pure-package.yml @@ -8,9 +8,12 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: git hash run: | git rev-parse HEAD @@ -21,12 +24,15 @@ jobs: yarn workspace lesspass-pure run test build-and-commit-and-push: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 needs: test steps: - uses: actions/checkout@v2 with: ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: build lesspass-pure package run: | yarn install diff --git a/.github/workflows/deploy-cli.yml b/.github/workflows/deploy-cli.yml index 5036e94..84d95c5 100644 --- a/.github/workflows/deploy-cli.yml +++ b/.github/workflows/deploy-cli.yml @@ -7,7 +7,7 @@ on: jobs: test-cli: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v1 @@ -18,7 +18,7 @@ jobs: cd cli ./test deploy-cli: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 needs: test-cli steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/deploy-containers.yml b/.github/workflows/deploy-containers.yml index a8b6bda..64b8a80 100644 --- a/.github/workflows/deploy-containers.yml +++ b/.github/workflows/deploy-containers.yml @@ -8,7 +8,7 @@ on: jobs: test-containers: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - name: test containers @@ -17,7 +17,7 @@ jobs: ./test deploy-containers: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 needs: test-containers steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/deploy-lesspass-crypto-package.yml b/.github/workflows/deploy-lesspass-crypto-package.yml index 2968be2..4b62576 100644 --- a/.github/workflows/deploy-lesspass-crypto-package.yml +++ b/.github/workflows/deploy-lesspass-crypto-package.yml @@ -7,19 +7,25 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: test lesspass-crypto package run: | yarn install yarn workspace lesspass-crypto run test deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 needs: test steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: deploy lesspass-crypto package run: | cd packages diff --git a/.github/workflows/deploy-lesspass-entropy-package.yml b/.github/workflows/deploy-lesspass-entropy-package.yml index 7fa213e..1f76868 100644 --- a/.github/workflows/deploy-lesspass-entropy-package.yml +++ b/.github/workflows/deploy-lesspass-entropy-package.yml @@ -7,19 +7,25 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: test lesspass-entropy package run: | yarn install yarn workspace lesspass-entropy run test deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 needs: test steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: deploy lesspass-entropy package run: | cd packages diff --git a/.github/workflows/deploy-lesspass-fingerprint-package.yml b/.github/workflows/deploy-lesspass-fingerprint-package.yml index 026cb91..3c0f6b4 100644 --- a/.github/workflows/deploy-lesspass-fingerprint-package.yml +++ b/.github/workflows/deploy-lesspass-fingerprint-package.yml @@ -7,19 +7,25 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: test lesspass-fingerprint package run: | yarn install yarn workspace lesspass-fingerprint run test deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 needs: test steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: deploy lesspass-fingerprint package run: | cd packages diff --git a/.github/workflows/deploy-lesspass-package.yml b/.github/workflows/deploy-lesspass-package.yml index a792c0d..e70d07c 100644 --- a/.github/workflows/deploy-lesspass-package.yml +++ b/.github/workflows/deploy-lesspass-package.yml @@ -7,19 +7,25 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: test lesspass package run: | yarn install yarn workspace lesspass run test deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 needs: test steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: deploy lesspass package run: | cd packages diff --git a/.github/workflows/deploy-lesspass-pure-package.yml b/.github/workflows/deploy-lesspass-pure-package.yml index 7bc095a..4a86a3d 100644 --- a/.github/workflows/deploy-lesspass-pure-package.yml +++ b/.github/workflows/deploy-lesspass-pure-package.yml @@ -7,9 +7,12 @@ on: jobs: deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: git hash run: | git rev-parse HEAD diff --git a/.github/workflows/deploy-lesspass-render-password-package.yml b/.github/workflows/deploy-lesspass-render-password-package.yml index a0d24ec..1eb57a4 100644 --- a/.github/workflows/deploy-lesspass-render-password-package.yml +++ b/.github/workflows/deploy-lesspass-render-password-package.yml @@ -7,19 +7,25 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: test lesspass-render-password package run: | yarn install yarn workspace lesspass-render-password run test deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 needs: test steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: deploy lesspass-render-password package run: | cd packages diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75a01cd..542badd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,18 +4,24 @@ on: [push, pull_request] jobs: test-packages: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: test packages run: | yarn install yarn test test-mobile: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12" - name: test mobile run: | cd mobile @@ -23,7 +29,7 @@ jobs: yarn test test-cli: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 strategy: max-parallel: 3 matrix: @@ -39,7 +45,7 @@ jobs: ./test test-backend: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v1 @@ -53,7 +59,7 @@ jobs: python manage.py test test-containers: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - name: test containers