-
Notifications
You must be signed in to change notification settings - Fork 65
93 lines (91 loc) · 2.82 KB
/
test.yml
File metadata and controls
93 lines (91 loc) · 2.82 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: test-action
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
PROJECT_NAME: happy-rat-64
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Deploy to Deno Deploy
uses: ./
with:
project: ${{ env.PROJECT_NAME }}
root: action/tests
entrypoint: hello.ts
import-map: ./import_map.json
- name: "Setup test: Deploy to Deno Deploy with deno.jsonc file"
run: sed -i 's/\$PROJECT_NAME/${{ env.PROJECT_NAME }}/g' action/tests/with-deno-config/deno.jsonc
- name: Deploy to Deno Deploy with deno.jsonc file
uses: ./
with:
root: action/tests/with-deno-config
- name: "Cleanup test: Deploy to Deno Deploy with deno.jsonc file"
run: git checkout action/tests/with-deno-config/deno.jsonc
- name: Deploy with single include
uses: ./
with:
project: ${{ env.PROJECT_NAME }}
root: action/tests
entrypoint: include_exclude.ts
include: include_exclude.ts
- name: Deploy with comma-separated include
uses: ./
with:
project: ${{ env.PROJECT_NAME }}
root: action
entrypoint: tests/include_exclude.ts
include: foo, tests/include_exclude.ts,bar
- name: Deploy with comma-separated exclude
uses: ./
with:
project: ${{ env.PROJECT_NAME }}
root: action/tests
entrypoint: include_exclude.ts
exclude: import_bomb1,import_bomb2
- name: Deploy with multiline exclude
uses: ./
with:
project: ${{ env.PROJECT_NAME }}
root: action/tests
entrypoint: include_exclude.ts
exclude: |
import_bomb1
import_bomb2
- name: Deploy combine include and exclude
uses: ./
with:
project: ${{ env.PROJECT_NAME }}
root: action
entrypoint: tests/include_exclude.ts
include: tests
exclude: |
tests/import_bomb1
tests/import_bomb2
- name: Always exclude node_modules directory
uses: ./
with:
project: ${{ env.PROJECT_NAME }}
root: action/tests/always_exclude_node_modules
entrypoint: main.ts
- name: Always exclude nested node_modules directory
uses: ./
with:
project: ${{ env.PROJECT_NAME }}
root: action/tests
entrypoint: always_exclude_node_modules/main.ts
- name: data URL entrypoint
uses: ./
with:
project: ${{ env.PROJECT_NAME }}
root: action/tests
entrypoint: "data:,Deno.serve(() => new Response())"