2023-07-26 21:11:30 -04:00
|
|
|
name: Build
|
|
|
|
run-name: ${{ gitea.actor }} is building
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2023-07-26 21:47:07 -04:00
|
|
|
Dependencies_NPM:
|
2023-07-26 21:17:56 -04:00
|
|
|
runs-on: Docker
|
2023-07-26 21:17:30 -04:00
|
|
|
container:
|
2023-07-26 21:47:07 -04:00
|
|
|
image: node:16
|
2023-07-26 21:11:30 -04:00
|
|
|
steps:
|
2023-07-26 21:47:07 -04:00
|
|
|
- name: Checkout Repository
|
2023-07-26 21:11:30 -04:00
|
|
|
uses: actions/checkout@v3
|
2023-07-26 23:32:41 -04:00
|
|
|
- name: Create Hash
|
|
|
|
uses: actions/go-hashfiles@v0.0.1
|
|
|
|
id: get-hash
|
|
|
|
with:
|
|
|
|
patterns: package-lock.json
|
|
|
|
- name: Restore Cached Dependencies
|
|
|
|
uses: actions/cache/restore@v3
|
|
|
|
with:
|
|
|
|
path: node_modules
|
|
|
|
key: npm-${{ steps.get-hash.outputs.hash }}
|
2023-07-26 21:47:07 -04:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm i
|
2023-07-26 21:56:20 -04:00
|
|
|
- name: Cache Dependencies
|
2023-07-26 21:53:35 -04:00
|
|
|
uses: actions/cache@v3
|
2023-07-26 21:47:07 -04:00
|
|
|
with:
|
2023-07-26 23:32:41 -04:00
|
|
|
path: node_modules
|
|
|
|
key: npm-${{ steps.get-hash.outputs.hash }}
|