|
26 | 26 |
|
27 | 27 | - uses: ruby/setup-ruby@v1 |
28 | 28 | with: |
29 | | - ruby-version-file: ".tool-versions" |
30 | 29 | bundler-cache: true |
31 | 30 |
|
32 | 31 | - name: Run RuboCop |
|
53 | 52 |
|
54 | 53 | - uses: ruby/setup-ruby@v1 |
55 | 54 | with: |
56 | | - ruby-version-file: ".tool-versions" |
57 | 55 | bundler-cache: true |
58 | 56 |
|
59 | 57 | - name: Setup Node.js for OpenAPI lint tooling |
@@ -106,42 +104,56 @@ jobs: |
106 | 104 | - name: Run frontend smoke test |
107 | 105 | run: npm run test:e2e |
108 | 106 |
|
109 | | - docker-test: |
| 107 | + docker-build-smoke-image: |
110 | 108 | needs: |
111 | 109 | - hadolint |
112 | 110 | - ruby |
113 | 111 | - openapi |
114 | 112 | - frontend |
115 | 113 | runs-on: ubuntu-latest |
| 114 | + steps: |
| 115 | + - uses: actions/checkout@v6 |
| 116 | + |
| 117 | + - name: Build Docker smoke image |
| 118 | + run: docker build -t html2rss/web -f Dockerfile . |
| 119 | + |
| 120 | + - name: Export Docker smoke image |
| 121 | + run: docker save html2rss/web -o /tmp/html2rss-web-smoke-image.tar |
| 122 | + |
| 123 | + - name: Upload Docker smoke image |
| 124 | + uses: actions/upload-artifact@v4 |
| 125 | + with: |
| 126 | + name: docker-smoke-image |
| 127 | + path: /tmp/html2rss-web-smoke-image.tar |
| 128 | + retention-days: 1 |
| 129 | + |
| 130 | + docker-test: |
| 131 | + needs: |
| 132 | + - docker-build-smoke-image |
| 133 | + runs-on: ubuntu-latest |
116 | 134 | strategy: |
117 | 135 | fail-fast: false |
118 | 136 | matrix: |
119 | 137 | smoke_auto_source_enabled: ["false", "true"] |
120 | 138 | steps: |
121 | | - - uses: actions/checkout@v5 |
| 139 | + - uses: actions/checkout@v6 |
122 | 140 |
|
123 | 141 | - uses: ruby/setup-ruby@v1 |
124 | 142 | with: |
125 | | - ruby-version-file: ".tool-versions" |
126 | 143 | bundler-cache: true |
127 | 144 |
|
128 | | - - name: Setup Node.js for Docker smoke test |
129 | | - uses: actions/setup-node@v4 |
| 145 | + - name: Download Docker smoke image |
| 146 | + uses: actions/download-artifact@v4 |
130 | 147 | with: |
131 | | - node-version-file: ".tool-versions" |
132 | | - cache: npm |
133 | | - cache-dependency-path: frontend/package-lock.json |
134 | | - |
135 | | - - name: Install frontend dependencies |
136 | | - run: npm ci |
137 | | - working-directory: frontend |
| 148 | + name: docker-smoke-image |
| 149 | + path: /tmp |
138 | 150 |
|
139 | | - - name: Build frontend static assets |
140 | | - run: npm run build |
141 | | - working-directory: frontend |
| 151 | + - name: Load Docker smoke image |
| 152 | + run: docker load -i /tmp/html2rss-web-smoke-image.tar |
142 | 153 |
|
143 | 154 | - name: Run Docker smoke test |
144 | 155 | env: |
| 156 | + DOCKER_SMOKE_SKIP_BUILD: "true" |
145 | 157 | SMOKE_AUTO_SOURCE_ENABLED: ${{ matrix.smoke_auto_source_enabled }} |
146 | 158 | run: bundle exec rake |
147 | 159 |
|
|
0 commit comments