ci: enable github actions (#4902)

This commit is contained in:
Yaroslav Serhieiev
2026-01-13 14:39:05 +02:00
committed by GitHub
parent 1f2f09629e
commit 28eedf560e
8 changed files with 74 additions and 86 deletions
+5 -3
View File
@@ -10,12 +10,14 @@ jobs:
name: Remark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610
with:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: NPQ_PKG_MGR=yarn npx npq install --immutable
run: yes | npx npq install --immutable
env:
NPQ_PKG_MGR: yarn
- run: yarn remark -r .remarkrc.nightly.mjs .
+5 -3
View File
@@ -29,12 +29,14 @@ jobs:
name: Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610
with:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: NPQ_PKG_MGR=yarn npx npq install --immutable
run: yes | npx npq install --immutable
env:
NPQ_PKG_MGR: yarn
- run: yarn docs:lint
+14 -15
View File
@@ -11,21 +11,20 @@ jobs:
issues: write
steps:
- name: Add comment
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.issue.number }}
body: |
Hello! We appreciate you bringing this issue to our attention.
It looks like this could be a valuable addition or fix to our project.
We believe that this feature would benefit greatly from contributions from the community,
even from first-time contributors.
run: |
gh issue comment ${{ github.event.issue.number }} --body "Hello! We appreciate you bringing this issue to our attention.
It looks like this could be a valuable addition or fix to our project.
We believe that this feature would benefit greatly from contributions from the community,
even from first-time contributors.
If you're interested in contributing to this feature,
please take a look at our [contribution guide](https://wix.github.io/Detox/docs/next/contributing).
It has all the information you need to know about how to submit a pull request and contribute to our project.
If you're interested in contributing to this feature,
please take a look at our [contribution guide](https://wix.github.io/Detox/docs/next/contributing).
It has all the information you need to know about how to submit a pull request and contribute to our project.
You're also welcome to join our [Discord server](https://discord.gg/CkD5QKheF5)
and discuss this feature with the collaborators or other contributors under the channel 'contributions'.
You're also welcome to join our [Discord server](https://discord.gg/CkD5QKheF5)
and discuss this feature with the collaborators or other contributors under the channel 'contributions'.
Please feel free to reach out to us if you have any questions, or need help with anything.
We appreciate your feedback and look forward to working with you!
Please feel free to reach out to us if you have any questions, or need help with anything.
We appreciate your feedback and look forward to working with you!"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+9 -8
View File
@@ -20,14 +20,14 @@ jobs:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610
with:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: npx npq install --immutable
run: yes | npx npq install --immutable
env:
NPQ_PKG_MGR: yarn
DETOX_DISABLE_POD_INSTALL: true
@@ -53,7 +53,7 @@ jobs:
- name: Pack Allure results
run: zip -r allure-results.zip detox/allure-results detox/test/allure-results generation/allure-results
- name: Upload Allure results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: allure-results-linux
path: allure-results.zip
@@ -62,14 +62,15 @@ jobs:
name: Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610
with:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: npx npq install --immutable
run: echo y | npx npq install --immutable
shell: bash
env:
NPQ_PKG_MGR: yarn
DETOX_DISABLE_POD_INSTALL: true
@@ -85,7 +86,7 @@ jobs:
Compress-Archive -Path detox/allure-results -DestinationPath allure-results.zip
shell: pwsh
- name: Upload Allure results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: allure-results-windows
path: allure-results.zip
+10 -11
View File
@@ -11,17 +11,16 @@ jobs:
issues: write
steps:
- name: Add comment
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.issue.number }}
body: |
Hello! We appreciate you bringing this issue to our attention.
run: |
gh issue comment ${{ github.event.issue.number }} --body "Hello! We appreciate you bringing this issue to our attention.
To assist our collaborators or contributors in identifying and resolving the problem,
it would be helpful if you could provide a minimal reproduction of the issue.
To assist our collaborators or contributors in identifying and resolving the problem,
it would be helpful if you could provide a minimal reproduction of the issue.
We recommend using our React Native template,
which can be found at https://github.com/wix-incubator/detoxtemplate,
but any minimal reproduction project would be appreciated.
We recommend using our React Native template,
which can be found at https://github.com/wix-incubator/detoxtemplate,
but any minimal reproduction project would be appreciated.
Your help is greatly appreciated. Thank you for your support!
Your help is greatly appreciated. Thank you for your support!"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+11 -12
View File
@@ -11,18 +11,17 @@ jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/support-requests@v2
with:
support-label: 'type: question/stack overflow'
issue-comment: >
This issue appears to be a general usage or support question.
- name: Add comment and close issue
if: "${{ github.event.action == 'labeled' && contains(github.event.label.name, 'type: question/stack overflow') }}"
run: |
gh issue comment ${{ github.event.issue.number }} --body "This issue appears to be a general usage or support question.
In order to get help, please either ask a question on Stack Overflow with the [`detox`](https://stackoverflow.com/questions/tagged/detox) tag,
or simply join our [Discord](https://discord.com/invite/CkD5QKheF5).
In order to get help, please either ask a question on Stack Overflow with the [\`detox\`](https://stackoverflow.com/questions/tagged/detox) tag,
or simply join our [Discord](https://discord.com/invite/CkD5QKheF5).
**Feel free to post your Stack Overflow question here for more visibility!**
**Feel free to post your Stack Overflow question here for more visibility!**
For more information about our policy on issues, refer to [this discussion](https://github.com/wix/Detox/issues/1305).
close-issue: true
lock-issue: false
issue-lock-reason: 'resolved'
For more information about our policy on issues, refer to [this discussion](https://github.com/wix/Detox/issues/1305)."
gh issue close ${{ github.event.issue.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+5 -3
View File
@@ -12,14 +12,16 @@ jobs:
surge-purge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610
with:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: NPQ_PKG_MGR=yarn npx npq install --immutable
run: yes | npx npq install --immutable
env:
NPQ_PKG_MGR: yarn
- name: Teardown old domains
run: yarn zx scripts/purge_expired_domains.mjs --olderThan ${{ github.event.inputs.days || '10' }}
env:
+15 -31
View File
@@ -19,22 +19,18 @@ jobs:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610
with:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
website:
- 'website/**'
- name: Install and build
working-directory: ./website
env:
NPQ_PKG_MGR: yarn
run: |
NPQ_PKG_MGR=yarn npx npq install
yes | npx npq install
yarn build
gh-release:
if: github.event_name != 'pull_request'
@@ -42,39 +38,27 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610
with:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
NPQ_PKG_MGR: yarn
run: |
git config --global user.email "[email protected]"
git config --global user.name "mobilewix"
cd website/
NPQ_PKG_MGR=yarn npx npq install
yes | npx npq install
yarn build
yarn docusaurus deploy
performance:
needs: gh-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: mkdir -p ${{ github.workspace }}/tmp/artifacts
- name: Lighthouse
uses: foo-software/lighthouse-check-action@master
with:
urls: 'https://wix.github.io/Detox/,https://wix.github.io/Detox/docs/next/demo/'
outputDirectory: ${{ github.workspace }}/tmp/artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Lighthouse reports
path: ${{ github.workspace }}/tmp/artifacts