ci: fix workflow stability by using standard actions
This commit is contained in:
+15
-10
@@ -15,9 +15,14 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
git clone http://gitea:3000/jimmy/nas-tools.git .
|
||||
git checkout ${{ github.sha }}
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
cache: 'pip'
|
||||
cache-dependency-path: 'dashboard/backend/requirements*.txt'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -46,14 +51,14 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
git clone http://gitea:3000/jimmy/nas-tools.git .
|
||||
git checkout ${{ github.sha }}
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||
apt-get install -y nodejs
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: 'dashboard/frontend/package-lock.json'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user