Support parsing some date/time combination formats #99
This file contains 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: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
all: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get versions | |
id: versions | |
run: | | |
sed 's/ /_version=/' .tool-versions | tee -a "$GITHUB_OUTPUT" | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ steps.versions.outputs.python_version }} | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .tool-versions | |
cache: yarn | |
cache-dependency-path: frontend/yarn.lock | |
- name: Install Task | |
run: | | |
wget -qO- 'https://github.com/go-task/task/releases/download/v3.36.0/task_linux_amd64.tar.gz' | tar -xz -C /usr/local/bin task | |
task --version | |
- name: Test Frontend | |
run: task test-frontend | |
# - name: Test Backend TODO: Fails on CI because the server can't bind to ports needed by the SMTP server. | |
# env: | |
# PORT_OFFSET: 10000 | |
# run: task test-backend | |
- name: Build frontend | |
run: task build-frontend | |
- name: Build Docker Image | |
run: | | |
docker build -t lt --build-arg PYTHON_VERSION="${{ steps.versions.outputs.python_version }}" . | |
docker run --rm -d -p 3060:80 lt | |
- name: Test Integration | |
id: build-test-image | |
run: task test-integration | |
- uses: actions/upload-artifact@v3 | |
if: steps.build-test-image.outcome == 'failure' | |
with: | |
name: playwright-report | |
path: intests/playwright-report/ | |
retention-days: 9 | |
- name: Push Docker image to GHCR | |
if: | | |
steps.build-test-image.outcome == 'success' && github.ref_name == 'master' | |
run: | | |
docker tag lt 'ghcr.io/${{ github.actor }}/littletools' | |
docker login ghcr.io --username '${{ github.actor }}' --password '${{ secrets.GITHUB_TOKEN }}' | |
docker push 'ghcr.io/${{ github.actor }}/littletools' |