зеркало из https://github.com/mozilla/pontoon.git
Update actions in workflows to latest versions (#3111)
This commit is contained in:
Родитель
4cf62b93d7
Коммит
e4b4946298
|
@ -24,12 +24,12 @@ jobs:
|
|||
name: pytest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: make build
|
||||
- name: Pytest
|
||||
run: make pytest
|
||||
env:
|
||||
run_opts: --user=root # volumes are only writable by root on gh
|
||||
- uses: codecov/codecov-action@v3
|
||||
- uses: codecov/codecov-action@v4
|
||||
with: { flags: backend }
|
||||
|
|
|
@ -20,8 +20,8 @@ jobs:
|
|||
name: TypeScript
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: '18' }
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
@ -35,8 +35,8 @@ jobs:
|
|||
jest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: '18' }
|
||||
- name: Install globals
|
||||
run: npm install --global npm@8
|
||||
|
@ -45,5 +45,5 @@ jobs:
|
|||
- name: Test
|
||||
run: npm test --coverage
|
||||
working-directory: translate
|
||||
- uses: codecov/codecov-action@v3
|
||||
- uses: codecov/codecov-action@v4
|
||||
with: { flags: frontend }
|
||||
|
|
|
@ -20,6 +20,6 @@ jobs:
|
|||
name: Validating app.json
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: Validate
|
||||
run: python3 -m json.tool < app.json > /dev/null
|
||||
|
|
|
@ -32,8 +32,8 @@ jobs:
|
|||
name: eslint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: '18' }
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
@ -44,8 +44,8 @@ jobs:
|
|||
name: prettier
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: '18' }
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
|
|
@ -21,8 +21,8 @@ jobs:
|
|||
flake8:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install Dependencies
|
||||
|
@ -35,8 +35,8 @@ jobs:
|
|||
black:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install Dependencies
|
||||
|
@ -49,8 +49,8 @@ jobs:
|
|||
pyupgrade:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install Dependencies
|
||||
|
|
|
@ -22,8 +22,8 @@ jobs:
|
|||
name: Test & build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: '18' }
|
||||
- name: Install globals
|
||||
run: npm install --global npm@8
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Test
|
||||
run: npm test
|
||||
working-directory: tag-admin
|
||||
- uses: codecov/codecov-action@v3
|
||||
- uses: codecov/codecov-action@v4
|
||||
with: { flags: non-frontend-js }
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
|
Загрузка…
Ссылка в новой задаче