[READ-ONLY] Mirror of https://github.com/probablykasper/time-machine-inspector. Time Machine backup size inspector app
backup macos tauri time-machine
0

Configure Feed

Select the types of activity you want to include in your feed.

Update github action

Kasper (Feb 24, 2022, 3:21 AM +0100) af608425 74d08e88

+27 -47
+6 -15
.github/workflows/release.yml
··· 5 5 - 'v*' 6 6 workflow_dispatch: 7 7 8 - env: 9 - CARGO_TERM_COLOR: always 10 - 11 8 jobs: 12 9 release: 13 - strategy: 14 - fail-fast: false 15 - matrix: 16 - platform: [macos-10.15] 17 - runs-on: ${{ matrix.platform }} 10 + runs-on: macos-10.15 18 11 steps: 19 12 - name: Checkout repository 20 13 uses: actions/checkout@v2 ··· 22 15 - name: Node.js setup 23 16 uses: actions/setup-node@v1 24 17 with: 25 - node-version: 14 18 + node-version: 16 26 19 27 20 - name: Rust setup 28 21 uses: actions-rs/toolchain@v1 ··· 37 30 38 31 - run: npm install 39 32 40 - - run: npm run build 41 - 42 - - uses: tauri-apps/tauri-action@v0 33 + - name: Build and release 34 + uses: tauri-apps/tauri-action@b3f03835ca527e9735b386f1b1302ca70714b1e6 43 35 env: 44 36 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 45 37 with: 46 - tagName: ${{ github.ref_name }} 47 - releaseName: ${{ github.ref_name }} 38 + tagName: v__VERSION__ 39 + releaseName: v__VERSION__ 48 40 releaseDraft: true 49 - prerelease: false
+14 -25
.github/workflows/test.yml
··· 3 3 push: 4 4 branches: 5 5 - '*' 6 - tags-ignore: 7 - - '*' 8 6 pull_request: 9 - branches: 10 - - '*' 11 7 workflow_dispatch: 12 8 13 - env: 14 - CARGO_TERM_COLOR: always 15 - 16 9 jobs: 17 10 test: 18 - strategy: 19 - fail-fast: false 20 - matrix: 21 - platform: [macos-10.15] 22 - runs-on: ${{ matrix.platform }} 11 + runs-on: macos-10.15 23 12 steps: 24 13 - name: Checkout repository 25 14 uses: actions/checkout@v2 ··· 27 16 - name: Node.js setup 28 17 uses: actions/setup-node@v1 29 18 with: 30 - node-version: 14 19 + node-version: 16 31 20 32 21 - name: Rust setup 33 22 uses: actions-rs/toolchain@v1 34 23 with: 35 24 toolchain: stable 25 + 26 + - name: Rust Cache 27 + uses: Swatinem/rust-cache@v1 28 + with: 29 + working-directory: ./src-tauri 36 30 37 31 - name: Install webkit2gtk (ubuntu only) 38 32 if: matrix.platform == 'ubuntu-latest' ··· 40 34 sudo apt-get update 41 35 sudo apt-get install -y webkit2gtk-4.0 42 36 43 - - name: Rust cache 44 - uses: actions/cache@v2 45 - with: 46 - path: | 47 - ~/.cargo/bin/ 48 - ~/.cargo/registry/index/ 49 - ~/.cargo/registry/cache/ 50 - ~/.cargo/git/db/ 51 - src-tauri/target/ 52 - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} 53 - 54 37 - run: npm install 55 38 56 39 - run: npm run build:web 57 40 41 + - run: npm run lint 42 + if: matrix.platform == 'ubuntu-latest' 43 + 58 44 - run: npm run test 59 45 60 - - run: npm run check 46 + - name: Build 47 + uses: tauri-apps/tauri-action@b3f03835ca527e9735b386f1b1302ca70714b1e6 48 + env: 49 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+4 -4
README.md
··· 23 23 ### Commands 24 24 - `npm run dev`: Start app in dev mode 25 25 - `npm run build`: Build 26 + - `npm run lint`: Lint 26 27 - `npm run format`: Format 27 - - `npm run check`: Check code 28 28 29 29 ### Release new version 30 30 1. Update `CHANGELOG.md` 31 - 2. Manually bump the version number in `src-tauri/Cargo.toml` 32 - 3. Run `npm run check` to make sure `Cargo.lock` is up to date 33 - 4. Commit with a tag in the format `v#.#.#` 31 + 2. Bump the version number in `src-tauri/Cargo.toml` 32 + 3. Run `npm run check` to update `Cargo.lock` 33 + 4. Create a git tag in the format `v#.#.#` 34 34 5. Add release notes to the generated GitHub release and publish it
+3 -3
package.json
··· 6 6 "tauri": "tauri", 7 7 "build": "tauri build", 8 8 "build:web": "vite build", 9 - "test": "cargo test --manifest-path ./src-tauri/Cargo.toml", 10 - "format": "prettier --write --plugin-search-dir=. src *.js && eslint --fix src *.js", 11 - "check": "cargo check --manifest-path src-tauri/Cargo.toml && eslint src *.js && svelte-check" 9 + "test": "echo 'No tests'", 10 + "lint": "prettier --check --plugin-search-dir=. src *.js && eslint src *.js && svelte-check", 11 + "format": "prettier --write --plugin-search-dir=. src *.js && eslint --fix src *.js" 12 12 }, 13 13 "devDependencies": { 14 14 "@sveltejs/vite-plugin-svelte": "1.0.0-next.37",