generated from int128/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (58 loc) · 1.4 KB
/
e2e.yaml
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
name: e2e
on:
pull_request:
paths:
- src/**
- tests/fixtures/**
- '*.json'
- '*.yaml'
- .github/workflows/e2e.yaml
push:
branches:
- main
paths:
- src/**
- tests/fixtures/**
- '*.json'
- '*.yaml'
- .github/workflows/e2e.yaml
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: docker/metadata-action@v5
id: metadata
with:
images: ghcr.io/${{ github.repository }}/fixture
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
id: build
with:
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
context: tests/fixtures
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm build
- uses: docker/metadata-action@v5
id: metadata
with:
images: ghcr.io/${{ github.repository }}/fixture
- uses: ./
with:
tags: ${{ steps.metadata.outputs.tags }}