Skip to content

[_]: feat/add more tests #2

[_]: feat/add more tests

[_]: feat/add more tests #2

name: Check website every 2 hours
on:
pull_request:
types:
- opened
- synchronize
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
- run: echo '${{ secrets.CYPRESS_ENV }}' > cypress.env.json
- run: echo '${{ secrets.ENV_LOCAL }}' > .env.local
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc
- run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
# You cannot read packages from other private repos with GITHUB_TOKEN
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49
- run: echo //npm.pkg.github.com/:_authToken=${{ secrets.CI_USER_GH_TOKEN }} >> .npmrc
- run: echo "always-auth=true" >> .npmrc
- name: Cypress run
uses: cypress-io/github-action@v6
with:
install: yarn
build: yarn build
start: yarn start
- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"Repository": "github.com/internxt/website.git",
"Platform": "Web",
"Description": "${{github.job.status}}",
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS_URL }}