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