generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (26 loc) · 940 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: 'build-test'
on:
pull_request:
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Set Node.js 20.x
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install bun
uses: oven-sh/setup-bun@8f24390df009a496891208e5e36b8a1de1f45135 # v1
- run: bun install --frozen-lockfile
- run: bun all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
permissions:
contents: write # to be able to delete branches
pull-requests: read # to be able to confirm that branches don't have associated PRs
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: ./
with:
dry-run: true