feat: use relative-time element for PR timestamp localization (#176) #462
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".node-version" | |
| cache: "npm" | |
| # We need to install again to get correct binary dependencies for github actions | |
| - name: Install dependencies | |
| run: | | |
| rm -f package-lock.json | |
| npm install | |
| - name: Build | |
| run: npm run build | |
| - name: Run tests | |
| run: npm test | |