Add functions to update user status (#211) #348
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: IronWeb CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.x | |
| - name: build and unit test | |
| run: | | |
| yarn | |
| yarn test | |
| integration_test: | |
| runs-on: ubuntu-24.04 | |
| needs: build_and_test | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.x | |
| - uses: browser-actions/setup-chrome@latest | |
| id: setup-chrome | |
| with: | |
| chrome-version: stable | |
| install-chromedriver: true | |
| - name: install dependencies | |
| run: yarn | |
| - name: write project credentials | |
| run: | | |
| echo '${{ secrets.INTEGRATION_PROJECT_JSON }}' > integration/projects/project.json | |
| echo '${{ secrets.INTEGRATION_PRIVATE_KEY }}' > integration/projects/private.key | |
| - name: start integration servers | |
| run: | | |
| yarn start & | |
| for port in 4500 4501; do | |
| for i in $(seq 1 30); do | |
| if curl -sk https://localhost:$port > /dev/null 2>&1; then | |
| echo "Server on port $port is ready" | |
| break | |
| fi | |
| sleep 1 | |
| done | |
| done | |
| - name: run nightwatch tests | |
| env: | |
| CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }} | |
| CHROMEDRIVER_PATH: ${{ steps.setup-chrome.outputs.chromedriver-path }} | |
| run: yarn nightwatch |