.gitea/workflows/deploy.yml aktualisiert
This commit is contained in:
@@ -9,23 +9,8 @@ jobs:
|
||||
steps:
|
||||
- name: Get code
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.20'
|
||||
- uses: actions/go-hashfiles@v0.0.1
|
||||
id: get-cache-hash
|
||||
with:
|
||||
patterns: |-
|
||||
**/package-lock.json
|
||||
- name: Cache dependencies
|
||||
id: cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: npm ci
|
||||
- name: Run our own Custom Composite Cached Node JS Deps Action
|
||||
uses: ./.gitea/actions/cached-deps-js
|
||||
- name: Lint code
|
||||
run: npm run lint
|
||||
test:
|
||||
@@ -33,23 +18,8 @@ jobs:
|
||||
steps:
|
||||
- name: Get code
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.20'
|
||||
- uses: actions/go-hashfiles@v0.0.1
|
||||
id: get-cache-hash
|
||||
with:
|
||||
patterns: |-
|
||||
**/package-lock.json
|
||||
- name: Cache dependencies
|
||||
id: cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: npm ci
|
||||
- name: Run our own Custom Composite Cached Node JS Deps Action
|
||||
uses: ./.gitea/actions/cached-deps-js
|
||||
- name: Test code
|
||||
id: run-tests
|
||||
run: npm run test
|
||||
@@ -65,23 +35,8 @@ jobs:
|
||||
steps:
|
||||
- name: Get code
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.20'
|
||||
- uses: actions/go-hashfiles@v0.0.1
|
||||
id: get-cache-hash
|
||||
with:
|
||||
patterns: |-
|
||||
**/package-lock.json
|
||||
- name: Cache dependencies
|
||||
id: cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: npm ci
|
||||
- name: Run our own Custom Composite Cached Node JS Deps Action
|
||||
uses: ./.gitea/actions/cached-deps-js
|
||||
- name: Build website
|
||||
run: npm run build
|
||||
- name: Package Artifacts
|
||||
|
||||
Reference in New Issue
Block a user