a
All checks were successful
Build and Deploy docker container / build (push) Successful in 5s

This commit is contained in:
Jonathan Branan 2024-11-02 23:38:47 -05:00
parent 1ad980266b
commit c03b7d74a7

View File

@ -8,31 +8,34 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/setup-go@v5 # - uses: actions/setup-go@v5
with: # with:
go-version: 'stable' # go-version: 'stable'
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Yarn # - name: Install Yarn
run: npm install -g yarn # run: npm install -g yarn
- name: Set Node.js 22.x # - name: Set Node.js 22.x
uses: actions/setup-node@v4 # uses: actions/setup-node@v4
with: # with:
node-version: 22.x # node-version: 22.x
cache: 'yarn' # cache: 'yarn'
- name: Hash files for cache # - name: Hash files for cache
uses: https://gitea.com/actions/go-hashfiles@v0.0.1 # uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: get-hash # id: get-hash
with: # with:
patterns: |- # patterns: |-
**/yarn.lock # **/yarn.lock
**/*.js # **/*.js
**/*.jsx # **/*.jsx
**/*.ts # **/*.ts
**/*.tsx # **/*.tsx
- name: Get yarn cache directory path # - name: Get yarn cache directory path
id: yarn-cache-dir-path # id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT # run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- run: echo "a=$(hashFiles('**/yarn.lock'))" - name: test
env:
THE_HASH: ${{ hashFiles('**/yarn.lock') }}
run: echo $THE_HASH
# - uses: actions/cache@v4 # - uses: actions/cache@v4
# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) # id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
# with: # with: