Skip to content
Myr

test.yml

This file

Path

.github/workflows/test.yml

31 lines · 1.0 KiB · YAML

Last changed by

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

History of this file

Take it

The walk stopped after 200 commits: lines older than 07f5cc9 point at it.

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 1–7why, one step back
1# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions34name: Test56on: ["push", "pull_request"]7

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

lines 8–10why, one step back
8permissions:
9 contents: read10

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 11–14why, one step back
11jobs:
12 build:13 runs-on: ubuntu-latest14 steps:

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

line 15why, one step back
15 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

line 16why, one step back
16 with:

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

lines 17–19why, one step back
17 persist-credentials: false
18 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.019 with:

chore: bump node version in GH actionsMichel Weststratebefore adoptioncd4c011

line 20why, one step back
20 node-version: 24

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 21–25why, one step back
21 - name: yarn install
22 run: yarn --frozen-lockfile23 - name: test24 run: yarn test25 - name: coverage test

chore: coverage fix #2Michel Weststratebefore adoptioncedc606

line 26why, one step back
26 run: yarn coverage

Merge pull request #1028 from immerjs/immer-10Michel Weststratebefore adoption2ef9a42

lines 27–28why, one step back
27 - name: perf test
28 run: yarn test:perf

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

line 29why, one step back
29 - uses: coverallsapp/github-action@8cbef1dea373ebce56de0a14c68d6267baa10b44 # v1.1.2

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 30–31why, one step back
30 with:
31 github-token: ${{ secrets.GITHUB_TOKEN }}