Skip to content

Commit 6fd6b11

Browse files
committed
Setup ci
1 parent e224a96 commit 6fd6b11

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
qa:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: '12'
13+
- uses: actions/cache@v2
14+
with:
15+
path: node_modules
16+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
17+
- run: yarn install
18+
- name: Lint
19+
run: yarn lint

src/fetch_response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class FetchResponse {
5555
async renderTurboStream () {
5656
if (this.isTurboStream) {
5757
if (window.Turbo) {
58-
Turbo.renderStreamMessage(await this.text)
58+
window.Turbo.renderStreamMessage(await this.text)
5959
} else {
6060
console.warn('You must set `window.Turbo = Turbo` to automatically process Turbo Stream events with request.js')
6161
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { FetchRequest } from './fetch_request'
22
import { FetchResponse } from './fetch_response'
33

4-
export { FetchRequest, FetchResponse }
4+
export { FetchRequest, FetchResponse }

0 commit comments

Comments
 (0)