summaryrefslogtreecommitdiff
path: root/date-fns/.github
diff options
context:
space:
mode:
Diffstat (limited to 'date-fns/.github')
-rw-r--r--date-fns/.github/FUNDING.yml9
-rw-r--r--date-fns/.github/workflows/coverage.yaml21
-rw-r--r--date-fns/.github/workflows/deploy.yaml21
-rw-r--r--date-fns/.github/workflows/main_tests.yaml31
-rw-r--r--date-fns/.github/workflows/node_tests.yaml31
-rw-r--r--date-fns/.github/workflows/timezone_step_1.yaml33
-rw-r--r--date-fns/.github/workflows/timezone_step_2.yaml33
7 files changed, 179 insertions, 0 deletions
diff --git a/date-fns/.github/FUNDING.yml b/date-fns/.github/FUNDING.yml
new file mode 100644
index 0000000..ba2478b
--- /dev/null
+++ b/date-fns/.github/FUNDING.yml
@@ -0,0 +1,9 @@
+# These are supported funding model platforms
+
+github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
+patreon: # Replace with a single Patreon username
+open_collective: date-fns
+ko_fi: # Replace with a single Ko-fi username
+tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+custom: # Replace with a single custom sponsorship URL
diff --git a/date-fns/.github/workflows/coverage.yaml b/date-fns/.github/workflows/coverage.yaml
new file mode 100644
index 0000000..88bc7cb
--- /dev/null
+++ b/date-fns/.github/workflows/coverage.yaml
@@ -0,0 +1,21 @@
+name: Coverage report
+
+'on':
+ push:
+ branches: [master]
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [14.x]
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: Run release script
+ run: ./scripts/test/coverageReport.sh
diff --git a/date-fns/.github/workflows/deploy.yaml b/date-fns/.github/workflows/deploy.yaml
new file mode 100644
index 0000000..fda9ab1
--- /dev/null
+++ b/date-fns/.github/workflows/deploy.yaml
@@ -0,0 +1,21 @@
+name: Deploy
+
+'on':
+ push:
+ branches: [master]
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [14.x]
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: Run release script
+ run: ./scripts/release/release.sh
diff --git a/date-fns/.github/workflows/main_tests.yaml b/date-fns/.github/workflows/main_tests.yaml
new file mode 100644
index 0000000..93ef149
--- /dev/null
+++ b/date-fns/.github/workflows/main_tests.yaml
@@ -0,0 +1,31 @@
+name: Node.js tests
+
+on: [push, pull_request]
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [14.x]
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: export CHROME_BIN
+ run: export CHROME_BIN=chromium-browser
+ - name: export DISPLAY
+ run: export DISPLAY=:99.0
+ - name: Install yarn
+ run: npm install -g yarn
+ - name: Install dependencies
+ run: yarn install
+ - name: Run tests
+ uses: GabrielBB/xvfb-action@v1.0
+ with:
+ run: ./scripts/test/ci.sh
+ env:
+ TEST_SUITE: node
diff --git a/date-fns/.github/workflows/node_tests.yaml b/date-fns/.github/workflows/node_tests.yaml
new file mode 100644
index 0000000..c850a0b
--- /dev/null
+++ b/date-fns/.github/workflows/node_tests.yaml
@@ -0,0 +1,31 @@
+name: Main tests
+
+on: [push, pull_request]
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [14.x]
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: export CHROME_BIN
+ run: export CHROME_BIN=chromium-browser
+ - name: export DISPLAY
+ run: export DISPLAY=:99.0
+ - name: Install yarn
+ run: npm install -g yarn
+ - name: Install dependencies
+ run: yarn install
+ - name: Run tests
+ uses: GabrielBB/xvfb-action@v1.0
+ with:
+ run: ./scripts/test/ci.sh
+ env:
+ TEST_SUITE: main
diff --git a/date-fns/.github/workflows/timezone_step_1.yaml b/date-fns/.github/workflows/timezone_step_1.yaml
new file mode 100644
index 0000000..fe9f365
--- /dev/null
+++ b/date-fns/.github/workflows/timezone_step_1.yaml
@@ -0,0 +1,33 @@
+name: Timezones 1/2
+
+on: [push, pull_request]
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [14.x]
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: export CHROME_BIN
+ run: export CHROME_BIN=chromium-browser
+ - name: export DISPLAY
+ run: export DISPLAY=:99.0
+ - name: Install yarn
+ run: npm install -g yarn
+ - name: Install dependencies
+ run: yarn install
+ - name: Run tests
+ uses: GabrielBB/xvfb-action@v1.0
+ with:
+ run: ./scripts/test/ci.sh
+ env:
+ TEST_SUITE: tz
+ TZ_LENGTH: 2
+ TZ_INDEX: 0
diff --git a/date-fns/.github/workflows/timezone_step_2.yaml b/date-fns/.github/workflows/timezone_step_2.yaml
new file mode 100644
index 0000000..83c6fec
--- /dev/null
+++ b/date-fns/.github/workflows/timezone_step_2.yaml
@@ -0,0 +1,33 @@
+name: Timezones 2/2
+
+on: [push, pull_request]
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [14.x]
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: export CHROME_BIN
+ run: export CHROME_BIN=chromium-browser
+ - name: export DISPLAY
+ run: export DISPLAY=:99.0
+ - name: Install yarn
+ run: npm install -g yarn
+ - name: Install dependencies
+ run: yarn install
+ - name: Run tests
+ uses: GabrielBB/xvfb-action@v1.0
+ with:
+ run: ./scripts/test/ci.sh
+ env:
+ TEST_SUITE: tz
+ TZ_LENGTH: 2
+ TZ_INDEX: 1